Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 85.33 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 168 kB / 23.96 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.442/1.442, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 325.1 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.107e-05/2.276e-05, allocations: 6.219 kB / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003759/0.003782, allocations: 2.663 MB / 327.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.005159, allocations: 0.7568 MB / 328.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.005289, allocations: 5.594 kB / 328.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002145/0.005503, allocations: 61.83 kB / 328.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002902/0.005793, allocations: 101.1 kB / 328.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.006086, allocations: 114.3 kB / 328.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004354/0.006521, allocations: 399.9 kB / 329.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.006721, allocations: 91.98 kB / 329.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004066/0.007127, allocations: 238.8 kB / 329.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.007336, allocations: 123.8 kB / 329.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.324e-05/0.007389, allocations: 32.56 kB / 329.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.917e-05/0.007448, allocations: 32.47 kB / 329.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.952e-05/0.007528, allocations: 74.34 kB / 329.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.007674, allocations: 121.1 kB / 329.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005012/0.008176, allocations: 410.9 kB / 330.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.008178, allocations: 5.156 kB / 330.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.008179, allocations: 0 / 330.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.008186, allocations: 0 / 330.3 MB, free: 13.4 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001162/0.009349, allocations: 0.5711 MB / 330.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.009382, allocations: 9.5 kB / 330.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.254e-05/0.009455, allocations: 39.08 kB / 330.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/0.00978, allocations: 215.4 kB / 331.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.009814, allocations: 27.44 kB / 331.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.338e-05/0.009867, allocations: 28.25 kB / 331.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006114/0.01048, allocations: 293.9 kB / 331.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.01049, allocations: 4.188 kB / 331.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.01053, allocations: 15.84 kB / 331.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.01054, allocations: 11.06 kB / 331.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000653/0.01119, allocations: 248.2 kB / 331.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.01286, allocations: 0.8705 MB / 332.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004149/0.01328, allocations: 145.9 kB / 332.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.01347, allocations: 59.36 kB / 332.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.0135, allocations: 14.08 kB / 332.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.01353, allocations: 32.72 kB / 332.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.01353, allocations: 4 kB / 332.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002213/0.01574, allocations: 0.6036 MB / 333.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.01578, allocations: 53.97 kB / 333.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002984/0.01608, allocations: 269.8 kB / 333.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.01611, allocations: 34.77 kB / 333.8 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.01627, allocations: 224.6 kB / 334 MB, free: 10.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.421e-05/0.01633, allocations: 76.31 kB / 334.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.01644, allocations: 68.67 kB / 334.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.0166, allocations: 337.4 kB / 334.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000309/0.0169, allocations: 94.66 kB / 334.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00039/0.01729, allocations: 195.2 kB / 334.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006784/0.01797, allocations: 302.2 kB / 335 MB, free: 9.754 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01798, allocations: 1.25 kB / 335 MB, free: 9.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009104/0.01889, allocations: 397.5 kB / 335.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.0189, allocations: 6.75 kB / 335.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.01891, allocations: 11.92 kB / 335.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002496/0.01916, allocations: 60.55 kB / 335.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003378/0.0195, allocations: 70.3 kB / 335.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/0.02166, allocations: 2.58 MB / 338.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002837/0.02194, allocations: 24.36 kB / 338.2 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.33e-05/0.02196, allocations: 10.41 kB / 338.2 MB, free: 6.867 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001705/0.02213, allocations: 153.8 kB / 338.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.386e-05/0.02219, allocations: 27.34 kB / 338.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.427e-05/0.02226, allocations: 36.11 kB / 338.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.02227, allocations: 2.531 kB / 338.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.02227, allocations: 5.281 kB / 338.4 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.02228, allocations: 3.984 kB / 338.4 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.02258, allocations: 221.7 kB / 338.6 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.02258, allocations: 0 / 338.6 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002231/0.02281, allocations: 39.81 kB / 338.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001641/0.02297, allocations: 57.44 kB / 338.7 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.02299, allocations: 5.188 kB / 338.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002048/0.02504, allocations: 2.579 MB / 341.3 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.02504, allocations: 5.062 kB / 341.3 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007808/0.02582, allocations: 369.8 kB / 341.7 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-05/0.02587, allocations: 26.92 kB / 341.7 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.0259, allocations: 5.375 kB / 341.7 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.02612, allocations: 15.67 kB / 341.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.736e-05/0.02619, allocations: 23.61 kB / 341.7 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.02621, allocations: 3.594 kB / 341.7 MB, free: 3.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001853/0.02639, allocations: 191 kB / 341.9 MB, free: 3.387 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.02639, allocations: 0 / 341.9 MB, free: 3.387 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004021/0.02679, allocations: 70.84 kB / 342 MB, free: 3.379 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.0001316/0.02692, allocations: 107.5 kB / 342.1 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009955/0.02792, allocations: 472 kB / 342.6 MB, free: 2.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.02792, allocations: 3.938 kB / 342.6 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000552/0.02847, allocations: 345.1 kB / 342.9 MB, free: 2.488 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.02881, allocations: 28.48 kB / 342.9 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.02988, allocations: 0.5287 MB / 343.5 MB, free: 1.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001605/0.03004, allocations: 164.8 kB / 343.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.03016, allocations: 34.2 kB / 343.7 MB, free: 1.688 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.938e-05/0.03023, allocations: 20.5 kB / 343.7 MB, free: 1.668 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.03023, allocations: 0 / 343.7 MB, free: 1.668 MB / 302.1 MB Notification: Performance of Templates: time 0.007155/0.03738, allocations: 2.76 MB / 346.4 MB, free: 14.94 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.2867647260427475]