Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.0009848/0.0009848, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009085/0.0009085, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.922/0.922, allocations: 173.4 MB / 201.1 MB, free: 9.332 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.ToroidalCoreQuadraticCrossSection,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.ToroidalCoreQuadraticCrossSection") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,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.ToroidalCoreQuadraticCrossSection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.664e-05/1.782e-05, allocations: 2.312 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.005913/0.005931, allocations: 5.021 MB / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003506/0.009437, allocations: 2.039 MB / 275.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003529/0.00979, allocations: 19.94 kB / 275.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.01227, allocations: 1.478 MB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001348/0.01362, allocations: 0.5668 MB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001768/0.01539, allocations: 1.019 MB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009517/0.01634, allocations: 0.7742 MB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009356/0.01728, allocations: 0.5791 MB / 279.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006572/0.01793, allocations: 490.9 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000499/0.01843, allocations: 343.1 kB / 280.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001382/0.01857, allocations: 68 kB / 280.4 MB, free: 9.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007946/0.01937, allocations: 379.3 kB / 280.8 MB, free: 9.609 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.0195, allocations: 171.3 kB / 280.9 MB, free: 9.441 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002956/0.01979, allocations: 263.3 kB / 281.2 MB, free: 9.184 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001321/0.02112, allocations: 0.8759 MB / 282.1 MB, free: 8.305 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.02112, allocations: 4 kB / 282.1 MB, free: 8.301 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.02112, allocations: 0 / 282.1 MB, free: 8.301 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.02114, allocations: 0 / 282.1 MB, free: 8.301 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003746/0.02488, allocations: 1.509 MB / 283.6 MB, free: 6.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.02492, allocations: 8.922 kB / 283.6 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002383/0.0273, allocations: 0.5154 MB / 284.1 MB, free: 6.227 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.02752, allocations: 195.6 kB / 284.3 MB, free: 6.008 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.187e-05/0.0276, allocations: 70.36 kB / 284.4 MB, free: 5.941 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001511/0.02775, allocations: 96.27 kB / 284.4 MB, free: 5.848 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.02915, allocations: 0.7085 MB / 285.2 MB, free: 5.113 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/0.02918, allocations: 192 / 285.2 MB, free: 5.113 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.853e-05/0.02925, allocations: 35.94 kB / 285.2 MB, free: 5.078 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.02928, allocations: 20 kB / 285.2 MB, free: 5.059 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.03035, allocations: 431.7 kB / 285.6 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004027/0.03438, allocations: 2.307 MB / 287.9 MB, free: 2.215 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008395/0.03522, allocations: 420.4 kB / 288.3 MB, free: 1.789 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002747/0.0355, allocations: 129.1 kB / 288.5 MB, free: 1.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.89e-05/0.03558, allocations: 24.48 kB / 288.5 MB, free: 1.637 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.03561, allocations: 37.89 kB / 288.5 MB, free: 1.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 2.385e-06/0.03561, allocations: 4 kB / 288.5 MB, free: 1.586 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.003642/0.03925, allocations: 1.342 MB / 289.9 MB, free: 200 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.0393, allocations: 85.61 kB / 290 MB, free: 96 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1146/0.1539, allocations: 370 kB / 290.3 MB, free: 22.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.907e-05/0.154, allocations: 32.89 kB / 290.4 MB, free: 21.99 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.1541, allocations: 423.8 kB / 290.8 MB, free: 21.81 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.1543, allocations: 224.3 kB / 291 MB, free: 21.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/0.1544, allocations: 162 kB / 291.1 MB, free: 21.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.183e-05/0.1545, allocations: 0.5276 MB / 291.7 MB, free: 21.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000269/0.1548, allocations: 116.7 kB / 291.8 MB, free: 21.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003462/0.1551, allocations: 494.4 kB / 292.3 MB, free: 20.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005853/0.1557, allocations: 0.6253 MB / 292.9 MB, free: 20.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.1557, allocations: 2.594 kB / 292.9 MB, free: 20.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0009301/0.1567, allocations: 0.6591 MB / 293.6 MB, free: 20.24 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.1567, allocations: 9.422 kB / 293.6 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.1567, allocations: 7.906 kB / 293.6 MB, free: 20.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003968/0.1571, allocations: 94.39 kB / 293.7 MB, free: 20.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.1575, allocations: 193 kB / 293.9 MB, free: 20.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.1587, allocations: 3.55 MB / 297.4 MB, free: 16.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.159, allocations: 41.81 kB / 297.4 MB, free: 16.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.393e-05/0.1591, allocations: 43.14 kB / 297.5 MB, free: 16.76 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.1592, allocations: 207 kB / 297.7 MB, free: 16.6 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.81e-05/0.1593, allocations: 61.16 kB / 297.8 MB, free: 16.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006856/0.16, allocations: 0.4944 MB / 298.2 MB, free: 16.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.16, allocations: 7.516 kB / 298.3 MB, free: 16.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.16, allocations: 1.281 kB / 298.3 MB, free: 16.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.16, allocations: 3.516 kB / 298.3 MB, free: 16.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.1612, allocations: 1.022 MB / 299.3 MB, free: 16.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.1612, allocations: 0 / 299.3 MB, free: 16.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000311/0.1615, allocations: 119.5 kB / 299.4 MB, free: 16.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003072/0.1618, allocations: 89.86 kB / 299.5 MB, free: 16.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.579e-05/0.1619, allocations: 19.06 kB / 299.5 MB, free: 16.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008961/0.1628, allocations: 3.538 MB / 303 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1628, allocations: 7.062 kB / 303 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008452/0.1636, allocations: 0.7067 MB / 303.8 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.1637, allocations: 89.73 kB / 303.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.1638, allocations: 13.7 kB / 303.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.164, allocations: 29.3 kB / 303.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.892e-05/0.1641, allocations: 48.98 kB / 303.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-05/0.1641, allocations: 21.91 kB / 304 MB, free: 12.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001364/0.1642, allocations: 228.9 kB / 304.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1642, allocations: 4 kB / 304.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005385/0.1648, allocations: 178.2 kB / 304.4 MB, free: 12.28 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (58): * Single equations (assignments): 56 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002165/0.165, allocations: 160.3 kB / 304.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007713/0.1658, allocations: 0.7566 MB / 305.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1658, allocations: 0 / 305.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003618/0.1661, allocations: 0.5435 MB / 305.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.1664, allocations: 56.58 kB / 305.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.1683, allocations: 1.137 MB / 307 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.1684, allocations: 140.5 kB / 307.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000251/0.1686, allocations: 93.47 kB / 307.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.1687, allocations: 52.06 kB / 307.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.1687, allocations: 0 / 307.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of Templates: time 0.009055/0.1778, allocations: 6.402 MB / 313.7 MB, free: 9.414 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.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.072795980144292]