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.001346/0.001346, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001505/0.001505, allocations: 152 kB / 24.81 MB, free: 9.281 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 1.041/1.041, allocations: 173.4 MB / 201.4 MB, free: 9.242 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.483e-06/1.483e-06, allocations: 0 / 268.4 MB, free: 6.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.632e-05/2.78e-05, allocations: 6.25 kB / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006002/0.00603, allocations: 6.237 MB / 274.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004611/0.01064, allocations: 2.445 MB / 277.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009717/0.01161, allocations: 23.94 kB / 277.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002108/0.01372, allocations: 1.302 MB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001525/0.01525, allocations: 0.6753 MB / 279.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.01658, allocations: 1.043 MB / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.01764, allocations: 1.109 MB / 281.2 MB, free: 9.332 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008246/0.01847, allocations: 0.7661 MB / 282 MB, free: 8.547 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000607/0.01908, allocations: 0.6509 MB / 282.7 MB, free: 7.895 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000451/0.01953, allocations: 426.8 kB / 283.1 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.01963, allocations: 100 kB / 283.2 MB, free: 7.379 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007262/0.02036, allocations: 391.4 kB / 283.6 MB, free: 6.996 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.02049, allocations: 235.1 kB / 283.8 MB, free: 6.766 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002467/0.02074, allocations: 363.1 kB / 284.1 MB, free: 6.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.02183, allocations: 1.07 MB / 285.2 MB, free: 5.336 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.02184, allocations: 0 / 285.2 MB, free: 5.336 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.02184, allocations: 0 / 285.2 MB, free: 5.336 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.02185, allocations: 0 / 285.2 MB, free: 5.336 MB / 266.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.002419/0.02427, allocations: 1.83 MB / 287 MB, free: 3.457 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.02431, allocations: 12.92 kB / 287 MB, free: 3.445 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001619/0.02593, allocations: 0.6518 MB / 287.7 MB, free: 2.793 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/0.02643, allocations: 434.5 kB / 288.1 MB, free: 2.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.41e-05/0.02648, allocations: 82.59 kB / 288.2 MB, free: 2.258 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.0266, allocations: 120 kB / 288.3 MB, free: 2.141 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007957/0.02739, allocations: 0.6817 MB / 289 MB, free: 1.414 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.02742, allocations: 3.984 kB / 289 MB, free: 1.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.001e-05/0.02748, allocations: 48 kB / 289.1 MB, free: 1.363 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.0275, allocations: 28 kB / 289.1 MB, free: 1.336 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005286/0.02803, allocations: 440 kB / 289.5 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1259/0.154, allocations: 2.769 MB / 292.3 MB, free: 20.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.155, allocations: 0.6597 MB / 292.9 MB, free: 20.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003333/0.1553, allocations: 245.7 kB / 293.2 MB, free: 20.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.727e-05/0.1554, allocations: 36.34 kB / 293.2 MB, free: 20.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004257/0.1558, allocations: 418.6 kB / 293.6 MB, free: 20.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=96): time 2.465e-06/0.1558, allocations: 0 / 293.6 MB, free: 20.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=125): time 0.005327/0.1611, allocations: 2.502 MB / 296.1 MB, free: 20.01 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.181e-05/0.1612, allocations: 147.1 kB / 296.3 MB, free: 19.85 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003249/0.1615, allocations: 409.3 kB / 296.7 MB, free: 19.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.331e-05/0.1616, allocations: 45.61 kB / 296.7 MB, free: 19.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/0.1618, allocations: 486 kB / 297.2 MB, free: 19.37 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.1621, allocations: 448.5 kB / 297.6 MB, free: 19.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.1623, allocations: 221.3 kB / 297.8 MB, free: 19.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1624, allocations: 0.5648 MB / 298.4 MB, free: 18.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002261/0.1626, allocations: 147.1 kB / 298.6 MB, free: 18.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003879/0.163, allocations: 470.9 kB / 299 MB, free: 18.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006188/0.1636, allocations: 0.6158 MB / 299.6 MB, free: 18.03 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.1636, allocations: 4.109 kB / 299.6 MB, free: 18.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.001241/0.1649, allocations: 0.991 MB / 300.6 MB, free: 17.85 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.1649, allocations: 7.641 kB / 300.6 MB, free: 17.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.1649, allocations: 5 kB / 300.6 MB, free: 17.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000817/0.1657, allocations: 374.5 kB / 301 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004608/0.1662, allocations: 206.2 kB / 301.2 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003752/0.1699, allocations: 9.175 MB / 310.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.1702, allocations: 46.12 kB / 310.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.494e-05/0.1703, allocations: 31.38 kB / 310.5 MB, free: 10.11 MB / 266.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.0001764/0.1705, allocations: 225.9 kB / 310.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.826e-05/0.1705, allocations: 116.3 kB / 310.8 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008679/0.1714, allocations: 0.9121 MB / 311.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1714, allocations: 12.09 kB / 311.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.1714, allocations: 8.812 kB / 311.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.1714, allocations: 4.594 kB / 311.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001701/0.1731, allocations: 1.76 MB / 313.5 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1731, allocations: 0 / 313.5 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003248/0.1735, allocations: 151.4 kB / 313.6 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005743/0.174, allocations: 365.6 kB / 314 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.712e-05/0.1741, allocations: 27.23 kB / 314 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002706/0.1768, allocations: 8.787 MB / 322.8 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1768, allocations: 2.219 kB / 322.8 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.1779, allocations: 1.259 MB / 324.1 MB, free: 164 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.178, allocations: 146.7 kB / 324.2 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.735e-05/0.1781, allocations: 25 kB / 324.2 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.1783, allocations: 36.14 kB / 324.3 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/0.1784, allocations: 103.1 kB / 324.4 MB, free: 0 / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.1785, allocations: 39.09 kB / 324.4 MB, free: 0 / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001667/0.1787, allocations: 258.1 kB / 324.7 MB, free: 15.8 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1787, allocations: 0 / 324.7 MB, free: 15.8 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000717/0.1794, allocations: 315 kB / 325 MB, free: 15.5 MB / 282.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.0001993/0.1796, allocations: 178.4 kB / 325.1 MB, free: 15.33 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.1808, allocations: 1.497 MB / 326.6 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1808, allocations: 3.469 kB / 326.6 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007656/0.1815, allocations: 1.208 MB / 327.8 MB, free: 12.7 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.1818, allocations: 77.72 kB / 327.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.1839, allocations: 1.772 MB / 329.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.1841, allocations: 211.6 kB / 329.9 MB, free: 10.61 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002407/0.1843, allocations: 97.92 kB / 330 MB, free: 10.51 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.1845, allocations: 166.2 kB / 330.2 MB, free: 10.34 MB / 282.7 MB Notification: Performance of SimCode: time 8.21e-07/0.1845, allocations: 0 / 330.2 MB, free: 10.34 MB / 282.7 MB Notification: Performance of Templates: time 0.01634/0.2009, allocations: 11.96 MB / 342.1 MB, free: 14.53 MB / 298.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0977032650262117]