Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.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.001541/0.001541, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001166/0.001166, allocations: 170.7 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9434/0.9434, allocations: 177.2 MB / 206.1 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] 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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.151e-05/2.295e-05, allocations: 4.75 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006552/0.006575, allocations: 4.859 MB / 279.1 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003816/0.01039, allocations: 2.077 MB / 281.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004044/0.0108, allocations: 16.5 kB / 281.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002428/0.01322, allocations: 1.435 MB / 282.6 MB, free: 12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009345/0.01416, allocations: 437 kB / 283 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001232/0.01539, allocations: 1.128 MB / 284.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000661/0.01605, allocations: 0.7625 MB / 284.9 MB, free: 9.668 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006574/0.01671, allocations: 0.5753 MB / 285.5 MB, free: 9.086 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004483/0.01716, allocations: 486.9 kB / 286 MB, free: 8.609 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003055/0.01746, allocations: 331.1 kB / 286.3 MB, free: 8.285 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.499e-05/0.01753, allocations: 68 kB / 286.4 MB, free: 8.219 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000567/0.01809, allocations: 395.3 kB / 286.7 MB, free: 7.832 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.407e-05/0.01818, allocations: 171.3 kB / 286.9 MB, free: 7.664 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.01834, allocations: 251.4 kB / 287.1 MB, free: 7.418 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008136/0.01916, allocations: 0.907 MB / 288.1 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.01916, allocations: 0 / 288.1 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.01916, allocations: 0 / 288.1 MB, free: 6.508 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.01917, allocations: 0 / 288.1 MB, free: 6.508 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.002396/0.02156, allocations: 1.513 MB / 289.6 MB, free: 4.953 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.0216, allocations: 8.031 kB / 289.6 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001407/0.023, allocations: 0.492 MB / 290.1 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.02315, allocations: 196.3 kB / 290.3 MB, free: 4.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.494e-05/0.02319, allocations: 66.38 kB / 290.3 MB, free: 4.168 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.0233, allocations: 96.33 kB / 290.4 MB, free: 4.074 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007031/0.024, allocations: 0.6497 MB / 291.1 MB, free: 3.398 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.02402, allocations: 4.172 kB / 291.1 MB, free: 3.395 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.134e-05/0.02407, allocations: 36.38 kB / 291.1 MB, free: 3.359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.02409, allocations: 23.94 kB / 291.1 MB, free: 3.336 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004503/0.02454, allocations: 349.6 kB / 291.5 MB, free: 2.996 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002561/0.0271, allocations: 2.315 MB / 293.8 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004762/0.02757, allocations: 391.2 kB / 294.2 MB, free: 172 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.0277, allocations: 109.1 kB / 294.3 MB, free: 60 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.395e-05/0.02777, allocations: 36.45 kB / 294.3 MB, free: 24 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.02781, allocations: 41.89 kB / 294.4 MB, free: 15.97 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 2.655e-06/0.02781, allocations: 0 / 294.4 MB, free: 15.97 MB / 282.7 MB Notification: Performance of matching and sorting (n=61): time 0.002044/0.02986, allocations: 1.163 MB / 295.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.912e-05/0.02989, allocations: 89.61 kB / 295.6 MB, free: 14.66 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002179/0.03011, allocations: 361.8 kB / 296 MB, free: 14.29 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.03014, allocations: 33.7 kB / 296 MB, free: 14.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000173/0.03032, allocations: 422.6 kB / 296.4 MB, free: 13.83 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.03043, allocations: 222.1 kB / 296.6 MB, free: 13.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.03059, allocations: 164.2 kB / 296.8 MB, free: 13.44 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.03073, allocations: 0.5312 MB / 297.3 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.03086, allocations: 89.92 kB / 297.4 MB, free: 12.81 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002892/0.03115, allocations: 466.3 kB / 297.9 MB, free: 12.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004726/0.03162, allocations: 0.5836 MB / 298.4 MB, free: 11.48 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.03163, allocations: 7.938 kB / 298.4 MB, free: 11.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.000674/0.0323, allocations: 0.5863 MB / 299 MB, free: 10.88 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.03232, allocations: 12.09 kB / 299 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.03233, allocations: 4 kB / 299 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002715/0.0326, allocations: 91.3 kB / 299.1 MB, free: 10.76 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004008/0.033, allocations: 179.7 kB / 299.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/0.03454, allocations: 3.501 MB / 302.8 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003016/0.03484, allocations: 55.98 kB / 302.9 MB, free: 6.801 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.03488, allocations: 24 kB / 302.9 MB, free: 6.777 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.0001892/0.03507, allocations: 212.2 kB / 303.1 MB, free: 6.559 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.752e-05/0.03516, allocations: 59.77 kB / 303.2 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005805/0.03574, allocations: 441 kB / 303.6 MB, free: 6.055 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.03575, allocations: 15.94 kB / 303.6 MB, free: 6.039 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.03575, allocations: 3.984 kB / 303.6 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.03576, allocations: 0 / 303.6 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.03679, allocations: 0.9014 MB / 304.5 MB, free: 5.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.03679, allocations: 0 / 304.5 MB, free: 5.094 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002918/0.03708, allocations: 111.9 kB / 304.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002346/0.03732, allocations: 87.27 kB / 304.7 MB, free: 4.891 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.03735, allocations: 12 kB / 304.7 MB, free: 4.879 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.03872, allocations: 3.486 MB / 308.2 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.03872, allocations: 0 / 308.2 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006415/0.03936, allocations: 0.6307 MB / 308.8 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.03948, allocations: 87.64 kB / 308.9 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/0.03952, allocations: 12.09 kB / 308.9 MB, free: 416 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.03971, allocations: 35.91 kB / 309 MB, free: 380 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.856e-05/0.03978, allocations: 48.41 kB / 309 MB, free: 332 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.03981, allocations: 19.92 kB / 309 MB, free: 312 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000103/0.03991, allocations: 218.9 kB / 309.2 MB, free: 88 kB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03991, allocations: 0 / 309.2 MB, free: 88 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004952/0.0404, allocations: 172 kB / 309.4 MB, free: 15.91 MB / 298.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.000197/0.0406, allocations: 163 kB / 309.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006146/0.04122, allocations: 0.7142 MB / 310.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.04122, allocations: 1.875 kB / 310.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003308/0.04155, allocations: 0.5147 MB / 310.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.04182, allocations: 59.02 kB / 310.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.0433, allocations: 1.082 MB / 311.9 MB, free: 13.28 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.262e-05/0.04338, allocations: 140.6 kB / 312.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002238/0.04361, allocations: 88.36 kB / 312.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.04381, allocations: 154.2 kB / 312.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of SimCode: time 9.51e-07/0.04381, allocations: 0 / 312.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of Templates: time 0.009756/0.05356, allocations: 7.219 MB / 319.5 MB, free: 5.781 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.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.7992747770622373]