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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002078/0.002078, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
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)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5011,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=5011,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") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 59.91 kB / 370.9 MB, free: 9.32 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2611, allocations: 52.18 MB / 423.1 MB, free: 14.85 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.01003/0.2711, allocations: 6.537 MB / 429.7 MB, free: 8.277 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.005413/0.2766, allocations: 2.569 MB / 432.2 MB, free: 5.699 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0005167/0.2771, allocations: 20 kB / 432.2 MB, free: 5.68 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.003165/0.2802, allocations: 1.286 MB / 433.5 MB, free: 4.391 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.001696/0.2819, allocations: 0.7024 MB / 434.2 MB, free: 3.688 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.002283/0.2842, allocations: 1.105 MB / 435.3 MB, free: 2.578 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001348/0.2856, allocations: 1.067 MB / 436.4 MB, free: 1.504 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001122/0.2867, allocations: 0.6864 MB / 437.1 MB, free: 0.7969 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000531/0.2872, allocations: 462.3 kB / 437.5 MB, free: 352 kB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0006766/0.2879, allocations: 0.5368 MB / 438.1 MB, free: 15.8 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.288, allocations: 99.94 kB / 438.2 MB, free: 15.71 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0008321/0.2889, allocations: 407.6 kB / 438.6 MB, free: 15.31 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002049/0.2891, allocations: 223.2 kB / 438.8 MB, free: 15.09 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0004904/0.2896, allocations: 0.5208 MB / 439.3 MB, free: 14.57 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001763/0.2913, allocations: 1.514 MB / 440.8 MB, free: 13.05 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2913, allocations: 7.938 kB / 440.8 MB, free: 13.04 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.352e-06/0.2913, allocations: 0 / 440.8 MB, free: 13.04 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 1.292e-05/0.2913, allocations: 0 / 440.8 MB, free: 13.04 MB / 350.1 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.004515/0.2959, allocations: 1.677 MB / 442.5 MB, free: 11.32 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.2959, allocations: 11.97 kB / 442.5 MB, free: 11.31 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003177/0.2991, allocations: 483.8 kB / 443 MB, free: 10.84 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007524/0.2998, allocations: 436.2 kB / 443.4 MB, free: 10.39 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.088e-05/0.2999, allocations: 82.22 kB / 443.5 MB, free: 10.3 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/0.3001, allocations: 123.9 kB / 443.6 MB, free: 10.18 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002002/0.3021, allocations: 0.9628 MB / 444.6 MB, free: 9.191 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.548e-05/0.3021, allocations: 0 / 444.6 MB, free: 9.191 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.3022, allocations: 44 kB / 444.6 MB, free: 9.148 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.45e-05/0.3022, allocations: 28 kB / 444.7 MB, free: 9.121 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001986/0.3042, allocations: 0.9652 MB / 445.6 MB, free: 8.148 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006042/0.3103, allocations: 3.492 MB / 449.1 MB, free: 4.473 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001788/0.3121, allocations: 0.8209 MB / 449.9 MB, free: 3.641 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0008227/0.3129, allocations: 400.2 kB / 450.3 MB, free: 3.246 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 8.305e-05/0.313, allocations: 21.05 kB / 450.4 MB, free: 3.227 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009461/0.3139, allocations: 478.5 kB / 450.8 MB, free: 2.734 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=96): time 2.334e-06/0.3139, allocations: 0 / 450.8 MB, free: 2.734 MB / 350.1 MB
Notification: Performance of matching and sorting (n=125): time 0.009775/0.3237, allocations: 3.687 MB / 454.5 MB, free: 15 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3238, allocations: 141.5 kB / 454.6 MB, free: 14.84 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004994/0.3243, allocations: 393.6 kB / 455 MB, free: 14.45 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.29e-05/0.3244, allocations: 49.69 kB / 455.1 MB, free: 14.39 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0003629/0.3247, allocations: 436.9 kB / 455.5 MB, free: 13.96 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0003767/0.3251, allocations: 448.1 kB / 455.9 MB, free: 13.52 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003287/0.3254, allocations: 198.9 kB / 456.1 MB, free: 13.32 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002099/0.3256, allocations: 378.8 kB / 456.5 MB, free: 12.94 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007795/0.3264, allocations: 350.5 kB / 456.8 MB, free: 12.6 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009556/0.3274, allocations: 0.539 MB / 457.4 MB, free: 11.99 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001755/0.3291, allocations: 0.9381 MB / 458.3 MB, free: 11 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3291, allocations: 3.938 kB / 458.3 MB, free: 11 MB / 366.1 MB
Notification: Performance of matching and sorting (n=158) (initialization): time 0.002833/0.332, allocations: 1.363 MB / 459.7 MB, free: 9.613 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.332, allocations: 8 kB / 459.7 MB, free: 9.605 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.332, allocations: 4 kB / 459.7 MB, free: 9.602 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0009812/0.333, allocations: 361.7 kB / 460.1 MB, free: 9.238 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000902/0.3339, allocations: 199.7 kB / 460.3 MB, free: 9.043 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008834/0.3427, allocations: 8.072 MB / 468.3 MB, free: 0.5234 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008245/0.3436, allocations: 51.94 kB / 468.4 MB, free: 484 kB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.178e-05/0.3436, allocations: 44 kB / 468.4 MB, free: 440 kB / 366.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 19
 * Number of states: 0 ()
 * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (114):
 * Single equations (assignments): 110
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 4
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 4 systems
   {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.000491/0.3441, allocations: 261.6 kB / 468.7 MB, free: 168 kB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.3443, allocations: 71.58 kB / 468.7 MB, free: 96 kB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002803/0.3471, allocations: 1.293 MB / 470 MB, free: 14.78 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.3471, allocations: 12 kB / 470 MB, free: 14.77 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.3471, allocations: 4 kB / 470.1 MB, free: 14.76 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.3471, allocations: 7.984 kB / 470.1 MB, free: 14.75 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00449/0.3516, allocations: 2.47 MB / 472.5 MB, free: 12.2 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.3516, allocations: 7.984 kB / 472.5 MB, free: 12.2 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007098/0.3523, allocations: 155.9 kB / 472.7 MB, free: 12.04 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0008642/0.3532, allocations: 323.1 kB / 473 MB, free: 11.71 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.411e-05/0.3532, allocations: 28.11 kB / 473 MB, free: 11.69 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008457/0.3617, allocations: 7.718 MB / 480.8 MB, free: 3.527 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/0.3617, allocations: 7.969 kB / 480.8 MB, free: 3.52 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003695/0.3654, allocations: 1.806 MB / 482.6 MB, free: 1.668 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0004032/0.3658, allocations: 147.5 kB / 482.7 MB, free: 1.523 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.3659, allocations: 31.94 kB / 482.7 MB, free: 1.492 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005409/0.3664, allocations: 35.98 kB / 482.8 MB, free: 1.457 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/0.3667, allocations: 108.7 kB / 482.9 MB, free: 1.352 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.485e-05/0.3668, allocations: 32 kB / 482.9 MB, free: 1.32 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0003474/0.3671, allocations: 271.2 kB / 483.2 MB, free: 1.055 MB / 382.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3671, allocations: 0 / 483.2 MB, free: 1.055 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.001246/0.3684, allocations: 315.9 kB / 483.5 MB, free: 0.7461 MB / 382.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 8
 * Number of states: 3 (rootMeanSquare.mean.x,coil.i,sourceQS.pin_p.reference.gamma)
 * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last)
 * Number of discrete states: 1 (rootMeanSquare.mean.x)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (85):
 * Single equations (assignments): 80
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 1
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 4
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 4 systems
   {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0003292/0.3687, allocations: 175 kB / 483.7 MB, free: 0.5625 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.003021/0.3717, allocations: 1.553 MB / 485.2 MB, free: 14.96 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3717, allocations: 0 / 485.2 MB, free: 14.96 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001781/0.3735, allocations: 1.103 MB / 486.3 MB, free: 13.81 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000584/0.3741, allocations: 77.42 kB / 486.4 MB, free: 13.73 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003719/0.3778, allocations: 1.966 MB / 488.4 MB, free: 11.73 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007001/0.3785, allocations: 1.024 MB / 489.4 MB, free: 10.68 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0004325/0.3789, allocations: 94.19 kB / 489.5 MB, free: 10.58 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.3791, allocations: 55.42 kB / 489.5 MB, free: 10.53 MB / 398.1 MB
Notification: Performance of SimCode: time 7.01e-07/0.3791, allocations: 4 kB / 489.5 MB, free: 10.52 MB / 398.1 MB
Notification: Performance of Templates: time 0.02235/0.4014, allocations: 11.96 MB / 0.4897 GB, free: 14.57 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile [Timeout 660]
(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) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.0397314466536045]