Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 221.3 MB / 235.5 MB, free: 2.965 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000787/0.000787, allocations: 86.23 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.781e-05/1.783e-05, allocations: 0 / 343.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08168/0.08172, allocations: 50.42 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2891/0.3708, allocations: 98.58 MB / 492.8 MB, free: 4.949 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002053/0.3711, allocations: 83.78 kB / 492.9 MB, free: 4.871 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07395/0.4451, allocations: 28.26 MB / 0.509 GB, free: 8.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.4451, allocations: 0 / 0.509 GB, free: 8.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.014e-05/0.4452, allocations: 20 kB / 0.509 GB, free: 8.41 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001612/0.4468, allocations: 1.107 MB / 0.5101 GB, free: 7.258 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.4468, allocations: 12.03 kB / 0.5101 GB, free: 7.246 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006288/0.4475, allocations: 186.4 kB / 0.5102 GB, free: 7.062 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.4488, allocations: 0.7886 MB / 0.511 GB, free: 6.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.257e-05/0.4489, allocations: 74 kB / 0.5111 GB, free: 6.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.449, allocations: 103.8 kB / 0.5112 GB, free: 6.059 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.4504, allocations: 0.9075 MB / 0.5121 GB, free: 5.121 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.4505, allocations: 0 / 0.5121 GB, free: 5.121 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.642e-05/0.4506, allocations: 44 kB / 0.5121 GB, free: 5.078 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.302e-05/0.4506, allocations: 27.95 kB / 0.5121 GB, free: 5.051 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.4516, allocations: 0.5819 MB / 0.5127 GB, free: 4.469 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004564/0.4562, allocations: 3.923 MB / 0.5165 GB, free: 328 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005765/0.4568, allocations: 436.2 kB / 0.517 GB, free: 15.87 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004621/0.4573, allocations: 247.5 kB / 0.5172 GB, free: 15.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.4573, allocations: 15.88 kB / 0.5172 GB, free: 15.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.4573, allocations: 38.56 kB / 0.5172 GB, free: 15.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 1.623e-06/0.4573, allocations: 0 / 0.5172 GB, free: 15.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=47): time 0.001888/0.4592, allocations: 1.201 MB / 0.5184 GB, free: 14.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.4593, allocations: 85.48 kB / 0.5185 GB, free: 14.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008265/0.4601, allocations: 0.684 MB / 0.5192 GB, free: 13.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.4602, allocations: 37.7 kB / 0.5192 GB, free: 13.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.4605, allocations: 0.541 MB / 0.5197 GB, free: 12.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.4606, allocations: 173.6 kB / 0.5199 GB, free: 12.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.4606, allocations: 12 kB / 0.5199 GB, free: 12.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.933e-05/0.4608, allocations: 338 kB / 0.5202 GB, free: 12.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/0.461, allocations: 157.5 kB / 0.5204 GB, free: 12.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003997/0.4614, allocations: 438 kB / 0.5208 GB, free: 11.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.4618, allocations: 233.5 kB / 0.521 GB, free: 11.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.4618, allocations: 4 kB / 0.521 GB, free: 11.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001132/0.4629, allocations: 0.7661 MB / 0.5218 GB, free: 10.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.463, allocations: 12 kB / 0.5218 GB, free: 10.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.463, allocations: 8 kB / 0.5218 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002667/0.4632, allocations: 97.95 kB / 0.5219 GB, free: 10.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005249/0.4638, allocations: 155.7 kB / 0.522 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002174/0.466, allocations: 2.986 MB / 0.5249 GB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.4665, allocations: 43.84 kB / 0.525 GB, free: 7.109 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.4665, allocations: 36.06 kB / 0.525 GB, free: 7.074 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.4667, allocations: 152.7 kB / 0.5252 GB, free: 6.918 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.4668, allocations: 87 kB / 0.5253 GB, free: 6.832 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008291/0.4676, allocations: 0.4906 MB / 0.5257 GB, free: 6.328 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.4676, allocations: 4 kB / 0.5257 GB, free: 6.324 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.4676, allocations: 4 kB / 0.5257 GB, free: 6.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4677, allocations: 3.984 kB / 0.5257 GB, free: 6.316 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001864/0.4695, allocations: 1.419 MB / 0.5271 GB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.4695, allocations: 4.203 kB / 0.5271 GB, free: 4.809 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/0.4699, allocations: 87.78 kB / 0.5272 GB, free: 4.723 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002232/0.4701, allocations: 81.62 kB / 0.5273 GB, free: 4.637 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.4701, allocations: 12 kB / 0.5273 GB, free: 4.625 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002121/0.4723, allocations: 2.974 MB / 0.5302 GB, free: 1.379 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4723, allocations: 4.031 kB / 0.5302 GB, free: 1.375 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.4733, allocations: 0.8478 MB / 0.531 GB, free: 452 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002388/0.4736, allocations: 200.1 kB / 0.5312 GB, free: 232 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.791e-05/0.4737, allocations: 8 kB / 0.5312 GB, free: 224 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004124/0.4741, allocations: 35.97 kB / 0.5313 GB, free: 188 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.589e-05/0.4742, allocations: 43.84 kB / 0.5313 GB, free: 144 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.4742, allocations: 12 kB / 0.5313 GB, free: 132 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006518/0.4749, allocations: 0.5187 MB / 0.5318 GB, free: 15.61 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4749, allocations: 0 / 0.5318 GB, free: 15.61 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008483/0.4757, allocations: 248 kB / 0.5321 GB, free: 15.37 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003803/0.4761, allocations: 297.6 kB / 0.5324 GB, free: 15.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009152/0.477, allocations: 0.6754 MB / 0.533 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4771, allocations: 0 / 0.533 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005416/0.4776, allocations: 442.4 kB / 0.5334 GB, free: 13.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008814/0.4785, allocations: 212 kB / 0.5336 GB, free: 13.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.4806, allocations: 1.26 MB / 0.5349 GB, free: 12.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/0.4811, allocations: 1.036 MB / 0.5359 GB, free: 11.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000409/0.4815, allocations: 99.34 kB / 0.536 GB, free: 11.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.4816, allocations: 59.42 kB / 0.536 GB, free: 11.18 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4816, allocations: 4 kB / 0.536 GB, free: 11.17 MB / 426.7 MB Notification: Performance of Templates: time 0.2023/0.6839, allocations: 12.27 MB / 0.548 GB, free: 118.4 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches