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.00111/0.00111, allocations: 84 kB / 21.43 MB, free: 3.125 MB / 18.57 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.004012/0.004012, allocations: 138.7 kB / 24.67 MB, free: 9.43 MB / 18.57 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 0.8714/0.8714, allocations: 173.4 MB / 201.2 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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 1.352e-06/1.352e-06, allocations: 0 / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.921e-05/2.056e-05, allocations: 6.219 kB / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.00501/0.005031, allocations: 5.802 MB / 325.5 MB, free: 32 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.00768, allocations: 2.382 MB / 327.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000297/0.007977, allocations: 23.94 kB / 327.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.009345, allocations: 1.251 MB / 329.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008943/0.01024, allocations: 0.6793 MB / 329.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.01133, allocations: 1.045 MB / 330.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.01245, allocations: 1.109 MB / 332 MB, free: 9.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007682/0.01322, allocations: 0.77 MB / 332.7 MB, free: 8.734 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005369/0.01376, allocations: 0.647 MB / 333.4 MB, free: 8.086 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003853/0.01414, allocations: 414.8 kB / 333.8 MB, free: 7.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.374e-05/0.01423, allocations: 96 kB / 333.9 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005083/0.01474, allocations: 395.4 kB / 334.3 MB, free: 7.199 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.01486, allocations: 235.1 kB / 334.5 MB, free: 6.969 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002251/0.01508, allocations: 359.1 kB / 334.9 MB, free: 6.617 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.01625, allocations: 1.55 MB / 336.4 MB, free: 5.062 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.01625, allocations: 0 / 336.4 MB, free: 5.062 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.01626, allocations: 0 / 336.4 MB, free: 5.062 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.01627, allocations: 3.984 kB / 336.4 MB, free: 5.059 MB / 298.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.002441/0.01871, allocations: 1.673 MB / 338.1 MB, free: 3.344 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.01874, allocations: 8.922 kB / 338.1 MB, free: 3.336 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001475/0.02022, allocations: 491.8 kB / 338.6 MB, free: 2.855 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005068/0.02073, allocations: 427.7 kB / 339 MB, free: 2.406 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003133/0.02104, allocations: 82.59 kB / 339.1 MB, free: 2.324 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.02115, allocations: 120.1 kB / 339.2 MB, free: 2.207 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.02227, allocations: 1.025 MB / 340.2 MB, free: 1.141 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.02229, allocations: 4 kB / 340.2 MB, free: 1.137 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.076e-05/0.02235, allocations: 44 kB / 340.3 MB, free: 1.094 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.02237, allocations: 28 kB / 340.3 MB, free: 1.066 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.02349, allocations: 0.9534 MB / 341.2 MB, free: 104 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/0.02693, allocations: 2.92 MB / 344.2 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.02797, allocations: 0.822 MB / 345 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004572/0.02842, allocations: 392.3 kB / 345.4 MB, free: 11.83 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.5e-05/0.02849, allocations: 28.92 kB / 345.4 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005362/0.02902, allocations: 0.5058 MB / 345.9 MB, free: 11.26 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.225e-06/0.02903, allocations: 0 / 345.9 MB, free: 11.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.005222/0.03425, allocations: 3.702 MB / 349.6 MB, free: 7.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.03432, allocations: 141.5 kB / 349.7 MB, free: 7.348 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002819/0.0346, allocations: 377.4 kB / 350.1 MB, free: 6.969 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.401e-05/0.03464, allocations: 53.7 kB / 350.2 MB, free: 6.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.03482, allocations: 429 kB / 350.6 MB, free: 6.484 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.03503, allocations: 440.1 kB / 351 MB, free: 6.051 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001883/0.03521, allocations: 206.9 kB / 351.2 MB, free: 5.844 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.03533, allocations: 378.7 kB / 351.6 MB, free: 5.465 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.03575, allocations: 346.5 kB / 351.9 MB, free: 5.125 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005253/0.03628, allocations: 0.5892 MB / 352.5 MB, free: 4.461 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.03752, allocations: 0.9374 MB / 353.5 MB, free: 3.473 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.03753, allocations: 0 / 353.5 MB, free: 3.473 MB / 314.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.001494/0.03902, allocations: 1.367 MB / 354.8 MB, free: 2.082 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.03904, allocations: 4 kB / 354.8 MB, free: 2.078 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.03905, allocations: 4 kB / 354.8 MB, free: 2.074 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005249/0.03957, allocations: 351.1 kB / 355.2 MB, free: 1.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000425/0.04, allocations: 207.7 kB / 355.4 MB, free: 1.516 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005008/0.045, allocations: 7.886 MB / 363.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003264/0.04533, allocations: 47.92 kB / 363.3 MB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.875e-05/0.04538, allocations: 48 kB / 363.4 MB, free: 9.145 MB / 330.7 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.0002876/0.04567, allocations: 253.6 kB / 363.6 MB, free: 8.887 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-05/0.04573, allocations: 75.53 kB / 363.7 MB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0015/0.04723, allocations: 1.289 MB / 365 MB, free: 7.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.04724, allocations: 12 kB / 365 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.04725, allocations: 12 kB / 365 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.04726, allocations: 7.922 kB / 365 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002346/0.04961, allocations: 2.178 MB / 367.2 MB, free: 5.227 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.04961, allocations: 0 / 367.2 MB, free: 5.227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003369/0.04995, allocations: 163.9 kB / 367.3 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007052/0.05065, allocations: 326.4 kB / 367.6 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.05069, allocations: 24 kB / 367.7 MB, free: 4.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004428/0.05512, allocations: 7.532 MB / 375.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.05512, allocations: 0 / 375.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.057, allocations: 1.813 MB / 377 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.05718, allocations: 135.5 kB / 377.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.05723, allocations: 32.06 kB / 377.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.05746, allocations: 43.97 kB / 377.2 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.05759, allocations: 100.8 kB / 377.3 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.699e-05/0.05763, allocations: 35.98 kB / 377.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001749/0.0578, allocations: 247.2 kB / 377.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.0578, allocations: 0 / 377.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007833/0.05858, allocations: 319.9 kB / 377.9 MB, free: 10.02 MB / 346.7 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.0002515/0.05884, allocations: 178.9 kB / 378.1 MB, free: 9.832 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.0604, allocations: 1.538 MB / 379.6 MB, free: 8.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.06041, allocations: 8.125 kB / 379.6 MB, free: 8.242 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009043/0.06131, allocations: 1.107 MB / 380.7 MB, free: 7.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.06167, allocations: 69.42 kB / 380.8 MB, free: 7.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.06418, allocations: 1.901 MB / 382.7 MB, free: 5.059 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.06447, allocations: 432 kB / 383.1 MB, free: 4.605 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.06462, allocations: 72.41 kB / 383.2 MB, free: 4.535 MB / 346.7 MB Notification: Performance of SimCode: time 6.32e-07/0.06462, allocations: 0 / 383.2 MB, free: 4.535 MB / 346.7 MB Notification: Performance of Templates: time 0.01773/0.08235, allocations: 26.61 MB / 409.8 MB, free: 9.852 MB / 378.7 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.288298548199236]