Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001788/0.001795, allocations: 180.6 kB / 8.151 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.667/1.667, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001265/0.001265, allocations: 93.75 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.112e-05/1.13e-05, allocations: 0 / 314.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2338, allocations: 47.56 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2055/0.4394, allocations: 134.9 MB / 496.8 MB, free: 14.97 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.4397, allocations: 82.95 kB / 496.9 MB, free: 14.89 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.6244/1.064, allocations: 129.5 MB / 0.6117 GB, free: 31.36 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005934/1.065, allocations: 147.8 kB / 0.6118 GB, free: 31.21 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02239/1.087, allocations: 5.436 MB / 0.6171 GB, free: 25.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/1.087, allocations: 8.031 kB / 0.6171 GB, free: 25.7 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00986/1.097, allocations: 1.171 MB / 0.6183 GB, free: 24.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01873/1.116, allocations: 4.918 MB / 0.6231 GB, free: 19.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003009/1.116, allocations: 184 kB / 0.6233 GB, free: 19.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002182/1.119, allocations: 339.8 kB / 0.6236 GB, free: 19.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01846/1.137, allocations: 5.345 MB / 0.6288 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02368/1.161, allocations: 6.289 MB / 0.6349 GB, free: 7.191 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003603/1.161, allocations: 23.83 kB / 0.635 GB, free: 7.168 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001877/1.163, allocations: 4 kB / 0.635 GB, free: 7.164 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000269/1.163, allocations: 251.3 kB / 0.6352 GB, free: 6.918 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2337/1.397, allocations: 23 MB / 0.6577 GB, free: 91.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004942/1.402, allocations: 1.884 MB / 0.6595 GB, free: 91.74 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005379/1.408, allocations: 2.268 MB / 0.6617 GB, free: 91.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02035/1.428, allocations: 7.235 MB / 0.6688 GB, free: 90.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.815e-05/1.428, allocations: 70.53 kB / 0.6689 GB, free: 90.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=280): time 7.224e-06/1.428, allocations: 0 / 0.6689 GB, free: 90.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=332): time 0.03653/1.465, allocations: 10.81 MB / 0.6794 GB, free: 89.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/1.465, allocations: 85.08 kB / 0.6795 GB, free: 89.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005768/1.47, allocations: 2.415 MB / 0.6819 GB, free: 89.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006943/1.471, allocations: 28.48 kB / 0.6819 GB, free: 89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/1.472, allocations: 1.969 MB / 0.6838 GB, free: 88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001536/1.474, allocations: 1.083 MB / 0.6849 GB, free: 87.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000329/1.474, allocations: 0 / 0.6849 GB, free: 87.28 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002645/1.475, allocations: 472.7 kB / 0.6853 GB, free: 86.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003967/1.478, allocations: 1.611 MB / 0.6869 GB, free: 86.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004741/1.483, allocations: 2.788 MB / 0.6896 GB, free: 85.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00584/1.489, allocations: 2.158 MB / 0.6917 GB, free: 85.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.401e-05/1.489, allocations: 13.69 kB / 0.6917 GB, free: 85.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=517) (initialization): time 0.01526/1.504, allocations: 5.291 MB / 0.6969 GB, free: 85.15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/1.505, allocations: 2.969 kB / 0.6969 GB, free: 85.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.841e-05/1.505, allocations: 41.62 kB / 0.6969 GB, free: 85.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003451/1.508, allocations: 0.8628 MB / 0.6978 GB, free: 85.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00747/1.516, allocations: 0.9313 MB / 0.6987 GB, free: 85.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01706/1.533, allocations: 9.034 MB / 0.7075 GB, free: 81.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004022/1.537, allocations: 144 kB / 0.7077 GB, free: 81.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004897/1.537, allocations: 177.1 kB / 0.7078 GB, free: 81.19 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 170 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 455 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(7,69.4%) 22,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008207/1.538, allocations: 141.9 kB / 0.708 GB, free: 81.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001247/1.539, allocations: 366.2 kB / 0.7083 GB, free: 80.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01407/1.553, allocations: 4.845 MB / 0.713 GB, free: 80.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.253e-05/1.554, allocations: 37.72 kB / 0.7131 GB, free: 80.51 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.066e-05/1.554, allocations: 7.438 kB / 0.7131 GB, free: 80.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.333e-05/1.554, allocations: 19.89 kB / 0.7131 GB, free: 80.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0278/1.581, allocations: 10.12 MB / 0.723 GB, free: 78.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01165/1.593, allocations: 4.025 MB / 0.7269 GB, free: 76.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005575/1.599, allocations: 0.5716 MB / 0.7275 GB, free: 76.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00465/1.603, allocations: 0.9352 MB / 0.7284 GB, free: 76.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005756/1.604, allocations: 32.56 kB / 0.7284 GB, free: 76.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02187/1.626, allocations: 12.41 MB / 0.7405 GB, free: 67.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/1.626, allocations: 10.88 kB / 0.7405 GB, free: 67.45 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01921/1.645, allocations: 7.583 MB / 0.748 GB, free: 63.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003077/1.648, allocations: 0.7944 MB / 0.7487 GB, free: 63.22 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001087/1.65, allocations: 19.36 kB / 0.7487 GB, free: 63.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003947/1.653, allocations: 148.4 kB / 0.7489 GB, free: 63.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000541/1.654, allocations: 189.8 kB / 0.7491 GB, free: 63.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000321/1.654, allocations: 88.19 kB / 0.7492 GB, free: 63.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004114/1.658, allocations: 1.769 MB / 0.7509 GB, free: 62.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006394/1.665, allocations: 1.047 MB / 0.7519 GB, free: 62.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 260 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001373/1.666, allocations: 478.4 kB / 0.7524 GB, free: 62.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01167/1.678, allocations: 4.831 MB / 0.7571 GB, free: 59.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/1.678, allocations: 5.969 kB / 0.7571 GB, free: 59.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0075/1.686, allocations: 2.862 MB / 0.7599 GB, free: 56.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005621/1.691, allocations: 0.5907 MB / 0.7605 GB, free: 56.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02746/1.719, allocations: 8.842 MB / 0.7691 GB, free: 48.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007385/1.726, allocations: 3.835 MB / 0.7728 GB, free: 45.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.653e-06/1.726, allocations: 0 / 0.7728 GB, free: 45.6 MB / 410.7 MB Notification: Performance of Templates: time 0.4435/2.17, allocations: 196.7 MB / 0.9649 GB, free: 14.53 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches