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.0009243/0.0009243, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001062/0.001062, allocations: 146.9 kB / 24.9 MB, free: 8.738 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.9334/0.9334, allocations: 173.4 MB / 201.5 MB, free: 8.758 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.353e-06/1.353e-06, allocations: 0 / 268.5 MB, free: 5.961 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.987e-05/2.122e-05, allocations: 5.969 kB / 268.5 MB, free: 5.957 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004924/0.004945, allocations: 4.927 MB / 273.5 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002768/0.007713, allocations: 2.105 MB / 275.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.007922, allocations: 16 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002006/0.009928, allocations: 1.474 MB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008917/0.01082, allocations: 0.5667 MB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.01205, allocations: 1.015 MB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006876/0.01273, allocations: 0.7742 MB / 279.4 MB, free: 11.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006584/0.01339, allocations: 0.6123 MB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004376/0.01383, allocations: 494.9 kB / 280.5 MB, free: 9.918 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003395/0.01417, allocations: 351.1 kB / 280.9 MB, free: 9.574 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.834e-05/0.01424, allocations: 68 kB / 280.9 MB, free: 9.508 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006359/0.01487, allocations: 383.4 kB / 281.3 MB, free: 9.133 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.103e-05/0.01497, allocations: 171.3 kB / 281.5 MB, free: 8.965 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.01515, allocations: 263.3 kB / 281.7 MB, free: 8.707 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008363/0.01598, allocations: 0.8875 MB / 282.6 MB, free: 7.816 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.01599, allocations: 4 kB / 282.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.01599, allocations: 0 / 282.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.01599, allocations: 0 / 282.6 MB, free: 7.812 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.002712/0.01871, allocations: 1.439 MB / 284.1 MB, free: 6.344 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.01874, allocations: 8.922 kB / 284.1 MB, free: 6.336 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001649/0.02039, allocations: 0.5275 MB / 284.6 MB, free: 5.809 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.02054, allocations: 208.7 kB / 284.8 MB, free: 5.578 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.622e-05/0.02059, allocations: 66.38 kB / 284.9 MB, free: 5.516 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.552e-05/0.02067, allocations: 92.3 kB / 284.9 MB, free: 5.426 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006915/0.02136, allocations: 0.6441 MB / 285.6 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.02138, allocations: 192 / 285.6 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/0.02143, allocations: 39.94 kB / 285.6 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.02144, allocations: 20 kB / 285.6 MB, free: 4.699 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004043/0.02185, allocations: 289.8 kB / 285.9 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.02407, allocations: 1.902 MB / 287.8 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004121/0.02448, allocations: 330.6 kB / 288.2 MB, free: 2.074 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.0246, allocations: 98.3 kB / 288.3 MB, free: 1.977 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.776e-05/0.02466, allocations: 20.5 kB / 288.3 MB, free: 1.957 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.02469, allocations: 43.05 kB / 288.3 MB, free: 1.906 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 3.136e-06/0.0247, allocations: 3.984 kB / 288.3 MB, free: 1.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.001014/0.02571, allocations: 0.5638 MB / 288.9 MB, free: 1.328 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/0.02575, allocations: 85.61 kB / 289 MB, free: 1.227 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.02594, allocations: 294.6 kB / 289.3 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.02596, allocations: 37.7 kB / 289.3 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.02611, allocations: 363.8 kB / 289.6 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.02622, allocations: 214.1 kB / 289.9 MB, free: 312 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.02636, allocations: 142.5 kB / 290 MB, free: 160 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.1158/0.1422, allocations: 346.7 kB / 290.3 MB, free: 22.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.1425, allocations: 74.09 kB / 290.4 MB, free: 22.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.1427, allocations: 337.6 kB / 290.7 MB, free: 22.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004156/0.1431, allocations: 477.6 kB / 291.2 MB, free: 21.89 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.1431, allocations: 1.562 kB / 291.2 MB, free: 21.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006608/0.1438, allocations: 461.5 kB / 291.7 MB, free: 21.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.1438, allocations: 11.41 kB / 291.7 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.1438, allocations: 7.438 kB / 291.7 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003865/0.1442, allocations: 87.27 kB / 291.8 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.1446, allocations: 170.9 kB / 291.9 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.1456, allocations: 2.39 MB / 294.3 MB, free: 19.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.1459, allocations: 84.55 kB / 294.4 MB, free: 19.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-05/0.146, allocations: 33.53 kB / 294.4 MB, free: 19.58 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (92): * Single equations (assignments): 90 * 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.0001636/0.1461, allocations: 155.9 kB / 294.6 MB, free: 19.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.954e-05/0.1462, allocations: 48.02 kB / 294.6 MB, free: 19.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005086/0.1467, allocations: 351 kB / 295 MB, free: 19.4 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1467, allocations: 9.062 kB / 295 MB, free: 19.4 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1467, allocations: 1.844 kB / 295 MB, free: 19.4 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1467, allocations: 3.578 kB / 295 MB, free: 19.4 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008757/0.1476, allocations: 0.659 MB / 295.6 MB, free: 19.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1476, allocations: 1.031 kB / 295.6 MB, free: 19.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003321/0.148, allocations: 109.1 kB / 295.8 MB, free: 19.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003862/0.1483, allocations: 76.66 kB / 295.8 MB, free: 19.17 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.262e-05/0.1484, allocations: 12.45 kB / 295.8 MB, free: 19.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000944/0.1494, allocations: 2.383 MB / 298.2 MB, free: 16.92 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1494, allocations: 1.125 kB / 298.2 MB, free: 16.92 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000492/0.1498, allocations: 476.4 kB / 298.7 MB, free: 16.76 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.854e-05/0.1499, allocations: 59.83 kB / 298.7 MB, free: 16.74 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.15, allocations: 9.891 kB / 298.8 MB, free: 16.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001842/0.1502, allocations: 19.97 kB / 298.8 MB, free: 16.74 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.1503, allocations: 47.14 kB / 298.8 MB, free: 16.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.1503, allocations: 12.38 kB / 298.8 MB, free: 16.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.944e-05/0.1504, allocations: 106.6 kB / 298.9 MB, free: 16.72 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1504, allocations: 0 / 298.9 MB, free: 16.72 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005417/0.1509, allocations: 224.2 kB / 299.2 MB, free: 16.7 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 (55): * Single equations (assignments): 53 * 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.0002089/0.1511, allocations: 138.3 kB / 299.3 MB, free: 16.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005966/0.1517, allocations: 0.5532 MB / 299.8 MB, free: 16.38 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.76e-05/0.1518, allocations: 6.562 kB / 299.9 MB, free: 16.38 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004032/0.1522, allocations: 397.6 kB / 300.2 MB, free: 16.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003195/0.1525, allocations: 53.42 kB / 300.3 MB, free: 16.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.1547, allocations: 1.091 MB / 301.4 MB, free: 15.63 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.1548, allocations: 134.3 kB / 301.5 MB, free: 15.56 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003771/0.1552, allocations: 89.22 kB / 301.6 MB, free: 15.52 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000269/0.1554, allocations: 121.5 kB / 301.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of SimCode: time 1.543e-06/0.1554, allocations: 0 / 301.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of Templates: time 0.01294/0.1684, allocations: 6.381 MB / 308.1 MB, free: 14.33 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 -s gbode -gbm=radauIIA3 -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: 2.8354822751134634]