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.001063/0.001063, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.001188/0.001188, allocations: 146 kB / 25.59 MB, free: 8.918 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.9594/0.9594, allocations: 173.4 MB / 202.2 MB, free: 8.277 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 2.444e-06/2.444e-06, allocations: 3.984 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.436e-05/2.68e-05, allocations: 3.906 kB / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.005081/0.005107, allocations: 4.878 MB / 274.1 MB, free: 4.871 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002807/0.007915, allocations: 2.023 MB / 276.1 MB, free: 2.852 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.008153, allocations: 16.53 kB / 276.1 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001628/0.009781, allocations: 1.426 MB / 277.6 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008447/0.01063, allocations: 0.5707 MB / 278.1 MB, free: 0.832 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.01178, allocations: 1.001 MB / 279.1 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000717/0.0125, allocations: 0.7742 MB / 279.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007186/0.01322, allocations: 0.5753 MB / 280.5 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004819/0.0137, allocations: 490.9 kB / 281 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.01402, allocations: 335.1 kB / 281.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.757e-05/0.01409, allocations: 68 kB / 281.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006823/0.01477, allocations: 379.3 kB / 281.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.695e-05/0.01487, allocations: 171.3 kB / 281.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.01504, allocations: 267.3 kB / 282.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009155/0.01595, allocations: 0.8759 MB / 283 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.01596, allocations: 4 kB / 283 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.01596, allocations: 0 / 283 MB, free: 11.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.01597, allocations: 0 / 283 MB, free: 11.91 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.002342/0.01831, allocations: 1.521 MB / 284.6 MB, free: 10.35 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.01835, allocations: 8.031 kB / 284.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/0.0197, allocations: 0.5076 MB / 285.1 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.01987, allocations: 207.6 kB / 285.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.732e-05/0.01991, allocations: 62.38 kB / 285.3 MB, free: 9.543 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.183e-05/0.02, allocations: 84.38 kB / 285.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007278/0.02073, allocations: 0.6497 MB / 286.1 MB, free: 8.785 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.02075, allocations: 8.125 kB / 286.1 MB, free: 8.777 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.965e-05/0.0208, allocations: 39.94 kB / 286.1 MB, free: 8.738 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.02082, allocations: 20 kB / 286.1 MB, free: 8.719 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004205/0.02124, allocations: 357.5 kB / 286.5 MB, free: 8.371 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002382/0.02362, allocations: 2.31 MB / 288.8 MB, free: 5.941 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004369/0.02406, allocations: 395.3 kB / 289.2 MB, free: 5.543 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.02418, allocations: 109 kB / 289.3 MB, free: 5.434 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.651e-05/0.02423, allocations: 28.42 kB / 289.3 MB, free: 5.406 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.02426, allocations: 41.89 kB / 289.4 MB, free: 5.355 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.874e-06/0.02426, allocations: 0 / 289.4 MB, free: 5.355 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002024/0.02628, allocations: 1.171 MB / 290.5 MB, free: 4.137 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.02632, allocations: 89.61 kB / 290.6 MB, free: 4.031 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002102/0.02653, allocations: 365.8 kB / 291 MB, free: 3.664 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.02656, allocations: 37.7 kB / 291 MB, free: 3.621 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.02673, allocations: 426.6 kB / 291.4 MB, free: 3.195 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.02684, allocations: 226 kB / 291.6 MB, free: 2.973 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.02699, allocations: 164.2 kB / 291.8 MB, free: 2.801 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.02712, allocations: 0.5273 MB / 292.3 MB, free: 2.262 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.02725, allocations: 93.91 kB / 292.4 MB, free: 2.172 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002904/0.02754, allocations: 470.3 kB / 292.9 MB, free: 1.559 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004252/0.02796, allocations: 0.5758 MB / 293.5 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.02796, allocations: 3.938 kB / 293.5 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0006343/0.0286, allocations: 0.6018 MB / 294.1 MB, free: 232 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.02862, allocations: 8 kB / 294.1 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.02863, allocations: 8 kB / 294.1 MB, free: 216 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000309/0.02893, allocations: 95.47 kB / 294.2 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004018/0.02934, allocations: 187.8 kB / 294.4 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.03075, allocations: 3.522 MB / 297.9 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.03102, allocations: 47.92 kB / 297.9 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.03106, allocations: 35.98 kB / 298 MB, free: 12.09 MB / 282.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.0001686/0.03123, allocations: 208.3 kB / 298.2 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.771e-05/0.03131, allocations: 59.77 kB / 298.2 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005391/0.03185, allocations: 457 kB / 298.7 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.03185, allocations: 7.984 kB / 298.7 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.03185, allocations: 4 kB / 298.7 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.03186, allocations: 0 / 298.7 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009607/0.03282, allocations: 0.8937 MB / 299.6 MB, free: 10.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.03282, allocations: 0 / 299.6 MB, free: 10.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002905/0.03311, allocations: 123.8 kB / 299.7 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002699/0.03338, allocations: 87.27 kB / 299.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.03341, allocations: 19.98 kB / 299.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.03474, allocations: 3.486 MB / 303.3 MB, free: 6.457 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.03474, allocations: 0 / 303.3 MB, free: 6.457 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006373/0.03537, allocations: 0.6424 MB / 303.9 MB, free: 5.785 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.0355, allocations: 79.69 kB / 304 MB, free: 5.707 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.237e-05/0.03554, allocations: 15.94 kB / 304 MB, free: 5.691 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.03573, allocations: 27.98 kB / 304 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.19e-05/0.03582, allocations: 52.39 kB / 304.1 MB, free: 5.613 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.03584, allocations: 12 kB / 304.1 MB, free: 5.602 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001117/0.03595, allocations: 231 kB / 304.3 MB, free: 5.375 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03595, allocations: 0 / 304.3 MB, free: 5.375 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005087/0.03646, allocations: 176 kB / 304.5 MB, free: 5.203 MB / 282.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.0002433/0.0367, allocations: 171.1 kB / 304.7 MB, free: 5.027 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007243/0.03743, allocations: 0.7153 MB / 305.4 MB, free: 4.289 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.03743, allocations: 0 / 305.4 MB, free: 4.289 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003578/0.03779, allocations: 0.5185 MB / 305.9 MB, free: 3.727 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.03807, allocations: 61.19 kB / 306 MB, free: 3.668 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.03968, allocations: 1.119 MB / 307.1 MB, free: 2.516 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.296e-05/0.03976, allocations: 140.8 kB / 307.2 MB, free: 2.363 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002485/0.04001, allocations: 96.41 kB / 307.3 MB, free: 2.266 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.04022, allocations: 154.2 kB / 307.5 MB, free: 2.113 MB / 282.7 MB Notification: Performance of SimCode: time 1.503e-06/0.04022, allocations: 0 / 307.5 MB, free: 2.113 MB / 282.7 MB Notification: Performance of Templates: time 0.01014/0.05037, allocations: 7.16 MB / 314.6 MB, free: 11.07 MB / 298.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: 2.8455812660977244]