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.000907/0.000907, allocations: 78.19 kB / 21.42 MB, free: 3.074 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.0008368/0.0008368, allocations: 152.2 kB / 24.81 MB, free: 8.383 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.9437/0.9437, allocations: 173.4 MB / 201.5 MB, free: 8.289 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 3.436e-06/3.436e-06, allocations: 4 kB / 268.4 MB, free: 9.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.218e-05/1.562e-05, allocations: 5.266 kB / 268.4 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004052/0.004067, allocations: 4.876 MB / 273.3 MB, free: 4.938 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00238/0.006448, allocations: 2.015 MB / 275.3 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002442/0.006692, allocations: 16.72 kB / 275.3 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001517/0.008209, allocations: 1.443 MB / 276.8 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007856/0.008995, allocations: 0.559 MB / 277.3 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.01007, allocations: 0.9981 MB / 278.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006208/0.01069, allocations: 0.7781 MB / 279.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006084/0.0113, allocations: 0.5714 MB / 279.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000415/0.01171, allocations: 487 kB / 280.2 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000293/0.012, allocations: 343.1 kB / 280.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.697e-05/0.01207, allocations: 68 kB / 280.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005195/0.01259, allocations: 379.3 kB / 280.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.126e-05/0.01267, allocations: 171.3 kB / 281.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.01284, allocations: 259.3 kB / 281.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007206/0.01356, allocations: 0.8837 MB / 282.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.01356, allocations: 0 / 282.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.01356, allocations: 4 kB / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.01356, allocations: 0 / 282.3 MB, free: 11.98 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.002192/0.01575, allocations: 1.509 MB / 283.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.01579, allocations: 8.031 kB / 283.8 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001334/0.01712, allocations: 0.5154 MB / 284.3 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.01725, allocations: 203.6 kB / 284.5 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.145e-05/0.01729, allocations: 66.38 kB / 284.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.355e-05/0.01737, allocations: 80.38 kB / 284.6 MB, free: 9.535 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007799/0.01815, allocations: 0.6575 MB / 285.3 MB, free: 8.852 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.01817, allocations: 8.141 kB / 285.3 MB, free: 8.844 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.891e-05/0.01822, allocations: 39.94 kB / 285.3 MB, free: 8.805 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.01823, allocations: 24 kB / 285.4 MB, free: 8.781 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004041/0.01864, allocations: 349.7 kB / 285.7 MB, free: 8.441 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002242/0.02088, allocations: 2.318 MB / 288 MB, free: 6.004 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004159/0.0213, allocations: 391.2 kB / 288.4 MB, free: 5.609 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.02141, allocations: 113 kB / 288.5 MB, free: 5.496 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.205e-05/0.02146, allocations: 28.47 kB / 288.5 MB, free: 5.469 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.02149, allocations: 41.89 kB / 288.6 MB, free: 5.418 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.613e-06/0.02149, allocations: 0 / 288.6 MB, free: 5.418 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.001925/0.02341, allocations: 1.178 MB / 289.8 MB, free: 4.191 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.02344, allocations: 85.61 kB / 289.8 MB, free: 4.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/0.02364, allocations: 357.9 kB / 290.2 MB, free: 3.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.02367, allocations: 41.7 kB / 290.2 MB, free: 3.684 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.02382, allocations: 430.5 kB / 290.6 MB, free: 3.254 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.02393, allocations: 226 kB / 290.9 MB, free: 3.031 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.02407, allocations: 164.1 kB / 291 MB, free: 2.859 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.0242, allocations: 0.5351 MB / 291.6 MB, free: 2.312 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.02432, allocations: 85.92 kB / 291.6 MB, free: 2.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006405/0.02496, allocations: 470.3 kB / 292.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000428/0.02539, allocations: 0.5797 MB / 292.7 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.02539, allocations: 0 / 292.7 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0006068/0.026, allocations: 0.5982 MB / 293.3 MB, free: 296 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.02602, allocations: 11.94 kB / 293.3 MB, free: 284 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.02602, allocations: 4 kB / 293.3 MB, free: 280 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002888/0.02631, allocations: 99.27 kB / 293.4 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.0267, allocations: 183.7 kB / 293.6 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.028, allocations: 3.522 MB / 297.1 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/0.02824, allocations: 43.98 kB / 297.1 MB, free: 12.19 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.02827, allocations: 31.98 kB / 297.2 MB, free: 12.16 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.0001453/0.02841, allocations: 208.3 kB / 297.4 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.991e-05/0.02848, allocations: 63.72 kB / 297.4 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000755/0.02924, allocations: 461.1 kB / 297.9 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.934e-06/0.02925, allocations: 12 kB / 297.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.02925, allocations: 0 / 297.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.02926, allocations: 3.984 kB / 297.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.03034, allocations: 0.9014 MB / 298.8 MB, free: 10.46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.03034, allocations: 0 / 298.8 MB, free: 10.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003202/0.03067, allocations: 115.9 kB / 298.9 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002791/0.03094, allocations: 87.28 kB / 299 MB, free: 10.26 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.03097, allocations: 19.98 kB / 299 MB, free: 10.24 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.03232, allocations: 3.494 MB / 302.5 MB, free: 6.512 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.03232, allocations: 0 / 302.5 MB, free: 6.512 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006748/0.033, allocations: 0.6346 MB / 303.2 MB, free: 5.848 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001527/0.03315, allocations: 87.69 kB / 303.2 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.071e-05/0.03319, allocations: 15.94 kB / 303.3 MB, free: 5.746 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.03339, allocations: 31.97 kB / 303.3 MB, free: 5.715 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.0335, allocations: 52.34 kB / 303.3 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.124e-05/0.03353, allocations: 15.98 kB / 303.3 MB, free: 5.648 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001167/0.03364, allocations: 218.9 kB / 303.6 MB, free: 5.434 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03364, allocations: 32 / 303.6 MB, free: 5.434 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004707/0.03411, allocations: 180 kB / 303.7 MB, free: 5.258 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.0002086/0.03432, allocations: 159.1 kB / 303.9 MB, free: 5.094 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006734/0.035, allocations: 0.712 MB / 304.6 MB, free: 4.355 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.035, allocations: 8.062 kB / 304.6 MB, free: 4.348 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.03532, allocations: 0.5185 MB / 305.1 MB, free: 3.785 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003505/0.03567, allocations: 52.62 kB / 305.2 MB, free: 3.734 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002282/0.03796, allocations: 1.142 MB / 306.3 MB, free: 2.562 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001123/0.03807, allocations: 136.8 kB / 306.5 MB, free: 2.414 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004155/0.03848, allocations: 88.41 kB / 306.5 MB, free: 2.324 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003139/0.0388, allocations: 158.2 kB / 306.7 MB, free: 2.168 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.0388, allocations: 0 / 306.7 MB, free: 2.168 MB / 282.7 MB Notification: Performance of Templates: time 0.01423/0.05302, allocations: 7.007 MB / 313.7 MB, free: 11.26 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.8407793110236526]