Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 174.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.266/1.266, allocations: 221.4 MB / 235.5 MB, free: 2.961 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.0009212/0.0009211, allocations: 95.98 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.119e-05/2.122e-05, allocations: 4 kB / 343.8 MB, free: 4.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1237, allocations: 50.42 MB / 394.2 MB, free: 1.871 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4167/0.5404, allocations: 93.11 MB / 487.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/0.5408, allocations: 89.47 kB / 487.4 MB, free: 10.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09885/0.6396, allocations: 30.21 MB / 0.5055 GB, free: 11.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.6397, allocations: 0 / 0.5055 GB, free: 11.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.889e-05/0.6397, allocations: 20 kB / 0.5055 GB, free: 11.78 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003029/0.6427, allocations: 1.231 MB / 0.5067 GB, free: 10.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.6428, allocations: 8.031 kB / 0.5068 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002305/0.6451, allocations: 394.4 kB / 0.5071 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007917/0.6459, allocations: 495.6 kB / 0.5076 GB, free: 9.578 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.911e-05/0.646, allocations: 82.22 kB / 0.5077 GB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001854/0.6462, allocations: 115.9 kB / 0.5078 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.6479, allocations: 0.9239 MB / 0.5087 GB, free: 8.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.648, allocations: 4 kB / 0.5087 GB, free: 8.426 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.461e-05/0.6481, allocations: 48 kB / 0.5087 GB, free: 8.379 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.218e-05/0.6481, allocations: 28 kB / 0.5088 GB, free: 8.352 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.6497, allocations: 0.8991 MB / 0.5097 GB, free: 7.445 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006014/0.6557, allocations: 3.736 MB / 0.5133 GB, free: 3.496 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.6575, allocations: 1.516 MB / 0.5148 GB, free: 1.809 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006158/0.6581, allocations: 415.7 kB / 0.5152 GB, free: 1.402 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001465/0.6582, allocations: 97.94 kB / 0.5153 GB, free: 1.289 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007403/0.659, allocations: 461.6 kB / 0.5157 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 2.776e-06/0.659, allocations: 0 / 0.5157 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.007309/0.6663, allocations: 3.472 MB / 0.5191 GB, free: 13.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001509/0.6665, allocations: 230.5 kB / 0.5193 GB, free: 12.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004162/0.6669, allocations: 346.8 kB / 0.5196 GB, free: 12.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.388e-05/0.667, allocations: 45.7 kB / 0.5197 GB, free: 12.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003304/0.6673, allocations: 419.6 kB / 0.5201 GB, free: 12.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002911/0.6676, allocations: 413.9 kB / 0.5205 GB, free: 11.76 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.048e-05/0.6677, allocations: 24 kB / 0.5205 GB, free: 11.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.6679, allocations: 374.8 kB / 0.5209 GB, free: 11.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005412/0.6684, allocations: 318.6 kB / 0.5212 GB, free: 11.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007033/0.6691, allocations: 0.5149 MB / 0.5217 GB, free: 10.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006844/0.6698, allocations: 402.1 kB / 0.5221 GB, free: 10.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.6699, allocations: 4 kB / 0.5221 GB, free: 10.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002328/0.6722, allocations: 1.298 MB / 0.5233 GB, free: 8.754 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.6722, allocations: 8.938 kB / 0.5233 GB, free: 8.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.6722, allocations: 4 kB / 0.5233 GB, free: 8.742 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008963/0.6731, allocations: 350.4 kB / 0.5237 GB, free: 8.391 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008207/0.674, allocations: 203.6 kB / 0.5239 GB, free: 8.191 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007398/0.6814, allocations: 7.648 MB / 0.5313 GB, free: 16 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007907/0.6822, allocations: 44.06 kB / 0.5314 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.806e-05/0.6823, allocations: 44.06 kB / 0.5314 GB, free: 15.93 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002151/0.6825, allocations: 176.7 kB / 0.5316 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.6826, allocations: 75.11 kB / 0.5317 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/0.6849, allocations: 1.215 MB / 0.5329 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.6849, allocations: 16.06 kB / 0.5329 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/0.6849, allocations: 12 kB / 0.5329 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.685, allocations: 3.984 kB / 0.5329 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003784/0.6887, allocations: 2.601 MB / 0.5354 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.6888, allocations: 0 / 0.5354 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006769/0.6895, allocations: 147.8 kB / 0.5356 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008966/0.6904, allocations: 328.8 kB / 0.5359 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.46e-05/0.6905, allocations: 24 kB / 0.5359 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007088/0.6976, allocations: 7.395 MB / 0.5431 GB, free: 3.305 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.6976, allocations: 4.062 kB / 0.5431 GB, free: 3.301 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002889/0.7005, allocations: 1.734 MB / 0.5448 GB, free: 1.504 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003262/0.7009, allocations: 224.1 kB / 0.545 GB, free: 1.266 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.095e-05/0.701, allocations: 27.95 kB / 0.5451 GB, free: 1.238 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005152/0.7015, allocations: 39.98 kB / 0.5451 GB, free: 1.199 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.7017, allocations: 92.86 kB / 0.5452 GB, free: 1.109 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.076e-05/0.7017, allocations: 28 kB / 0.5452 GB, free: 1.082 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003063/0.7021, allocations: 269.2 kB / 0.5455 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7021, allocations: 0 / 0.5455 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001154/0.7032, allocations: 327.9 kB / 0.5458 GB, free: 0.4961 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(2,100.0%) 18,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003623/0.7036, allocations: 222.5 kB / 0.546 GB, free: 272 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2309/0.9345, allocations: 1.536 MB / 0.5475 GB, free: 115.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.9345, allocations: 1.156 kB / 0.5475 GB, free: 115.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002228/0.9367, allocations: 1.097 MB / 0.5486 GB, free: 115.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006118/0.9374, allocations: 55.89 kB / 0.5486 GB, free: 115.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004385/0.9418, allocations: 1.451 MB / 0.55 GB, free: 114.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007881/0.9426, allocations: 1.039 MB / 0.5511 GB, free: 114.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000899/0.9435, allocations: 100 kB / 0.5511 GB, free: 114.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.9438, allocations: 54.98 kB / 0.5512 GB, free: 114.2 MB / 426.7 MB Notification: Performance of SimCode: time 5.81e-07/0.9438, allocations: 0 / 0.5512 GB, free: 114.2 MB / 426.7 MB Notification: Performance of Templates: time 0.02988/0.9737, allocations: 10.41 MB / 0.5614 GB, free: 113.7 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches