Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.0009702/0.0009702, 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.0008735/0.0008735, allocations: 148.9 kB / 24.81 MB, free: 9.27 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.9858/0.9858, allocations: 173.3 MB / 201.4 MB, free: 9.223 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.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 268.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.051e-05/2.192e-05, allocations: 6.312 kB / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.01297/0.013, allocations: 6.385 MB / 274.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.02324, allocations: 2.319 MB / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006617/0.02391, allocations: 20 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00584/0.02975, allocations: 1.929 MB / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006821/0.03657, allocations: 0.7064 MB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001559/0.03813, allocations: 1.108 MB / 280.9 MB, free: 9.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009975/0.03912, allocations: 1.167 MB / 282.1 MB, free: 8.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007861/0.03991, allocations: 0.8291 MB / 282.9 MB, free: 7.633 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005179/0.04043, allocations: 0.6938 MB / 283.6 MB, free: 6.938 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003767/0.0408, allocations: 0.4908 MB / 284.1 MB, free: 6.445 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.134e-05/0.0409, allocations: 100 kB / 284.2 MB, free: 6.348 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005867/0.04148, allocations: 411.3 kB / 284.6 MB, free: 5.945 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.0416, allocations: 255 kB / 284.8 MB, free: 5.695 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000232/0.04184, allocations: 387 kB / 285.2 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009233/0.04276, allocations: 1.168 MB / 286.4 MB, free: 4.145 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.04276, allocations: 0 / 286.4 MB, free: 4.145 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.04276, allocations: 0 / 286.4 MB, free: 4.145 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.04277, allocations: 0 / 286.4 MB, free: 4.145 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.003051/0.04582, allocations: 2.092 MB / 288.5 MB, free: 2.012 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.04586, allocations: 12.92 kB / 288.5 MB, free: 2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001849/0.04771, allocations: 0.7297 MB / 289.2 MB, free: 1.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.04786, allocations: 258.8 kB / 289.5 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.665e-05/0.04792, allocations: 94.95 kB / 289.6 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.04804, allocations: 128.4 kB / 289.7 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.108/0.1561, allocations: 0.9455 MB / 290.6 MB, free: 20.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.31e-05/0.1561, allocations: 7.281 kB / 290.6 MB, free: 20.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.285e-05/0.1562, allocations: 54.69 kB / 290.7 MB, free: 20.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.1562, allocations: 30.94 kB / 290.7 MB, free: 20.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008187/0.157, allocations: 0.5062 MB / 291.2 MB, free: 20.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003657/0.1607, allocations: 3.247 MB / 294.5 MB, free: 19.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009908/0.1617, allocations: 0.906 MB / 295.4 MB, free: 19.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003013/0.162, allocations: 249.1 kB / 295.6 MB, free: 19.49 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.26e-05/0.1621, allocations: 50.36 kB / 295.7 MB, free: 19.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.1621, allocations: 48.53 kB / 295.7 MB, free: 19.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=122): time 3.366e-06/0.1621, allocations: 0 / 295.7 MB, free: 19.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=125): time 0.00338/0.1655, allocations: 2.113 MB / 297.8 MB, free: 19.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/0.1655, allocations: 95.58 kB / 297.9 MB, free: 18.99 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.1657, allocations: 419.9 kB / 298.3 MB, free: 18.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.1658, allocations: 47.42 kB / 298.4 MB, free: 18.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.166, allocations: 0.5075 MB / 298.9 MB, free: 18.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.1661, allocations: 455.6 kB / 299.3 MB, free: 18.24 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002312/0.1664, allocations: 249.1 kB / 299.6 MB, free: 18.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.46e-05/0.1665, allocations: 0.5602 MB / 300.1 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.1667, allocations: 163.5 kB / 300.3 MB, free: 17.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/0.167, allocations: 0.5602 MB / 300.9 MB, free: 17.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005757/0.1676, allocations: 0.7693 MB / 301.6 MB, free: 16.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1676, allocations: 6.125 kB / 301.6 MB, free: 16.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.0009969/0.1686, allocations: 0.977 MB / 302.6 MB, free: 16.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1686, allocations: 11.91 kB / 302.6 MB, free: 16.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.1687, allocations: 6.875 kB / 302.6 MB, free: 16.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005066/0.1692, allocations: 257.6 kB / 302.9 MB, free: 16.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005574/0.1697, allocations: 270 kB / 303.1 MB, free: 16.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.1714, allocations: 4.747 MB / 307.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003493/0.1717, allocations: 65 kB / 307.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.346e-05/0.1718, allocations: 47.83 kB / 308 MB, free: 12.37 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001668/0.1719, allocations: 226.5 kB / 308.2 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.828e-05/0.172, allocations: 110.2 kB / 308.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009287/0.1729, allocations: 0.8627 MB / 309.2 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.173, allocations: 17.12 kB / 309.2 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.173, allocations: 3.125 kB / 309.2 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.241e-05/0.173, allocations: 5.766 kB / 309.2 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001987/0.175, allocations: 1.651 MB / 310.9 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.175, allocations: 0 / 310.9 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004353/0.1754, allocations: 195.7 kB / 311.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004442/0.1759, allocations: 237.3 kB / 311.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.615e-05/0.1759, allocations: 28.22 kB / 311.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001633/0.1775, allocations: 4.617 MB / 315.9 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1775, allocations: 3.656 kB / 315.9 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.1786, allocations: 1.129 MB / 317.1 MB, free: 6.387 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002109/0.1788, allocations: 146.1 kB / 317.2 MB, free: 6.305 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.18e-05/0.1788, allocations: 23.38 kB / 317.2 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/0.1791, allocations: 44.56 kB / 317.3 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.1792, allocations: 99.88 kB / 317.4 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.447e-05/0.1792, allocations: 34.28 kB / 317.4 MB, free: 6.246 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000102/0.1793, allocations: 259 kB / 317.7 MB, free: 6.109 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1793, allocations: 0 / 317.7 MB, free: 6.109 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007537/0.1801, allocations: 304.6 kB / 318 MB, free: 6.062 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (currentSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002083/0.1803, allocations: 169.7 kB / 318.1 MB, free: 5.949 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008494/0.1811, allocations: 1.088 MB / 319.2 MB, free: 5.004 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1811, allocations: 0 / 319.2 MB, free: 5.004 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004061/0.1815, allocations: 0.7626 MB / 320 MB, free: 4.312 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.1819, allocations: 85.48 kB / 320.1 MB, free: 4.238 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/0.1838, allocations: 1.786 MB / 321.8 MB, free: 2.555 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.546e-05/0.1839, allocations: 199.7 kB / 322 MB, free: 2.336 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003355/0.1843, allocations: 146.6 kB / 322.2 MB, free: 2.188 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.1845, allocations: 190.2 kB / 322.4 MB, free: 2 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1845, allocations: 0 / 322.4 MB, free: 2 MB / 266.7 MB Notification: Performance of Templates: time 0.01394/0.1985, allocations: 11.07 MB / 333.4 MB, free: 7.145 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.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: 2.9309860500507057]