Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.00118/0.00118, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0008526/0.0008526, allocations: 140.1 kB / 24.89 MB, free: 9.219 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.9249/0.9249, allocations: 173.3 MB / 201.5 MB, free: 9.199 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.163e-06/1.163e-06, allocations: 0 / 268.5 MB, free: 6.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.077e-05/2.193e-05, allocations: 2.312 kB / 268.5 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003151/0.003173, allocations: 2.842 MB / 271.4 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.004422, allocations: 0.7513 MB / 272.1 MB, free: 2.527 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.00455, allocations: 8 kB / 272.1 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001786/0.004728, allocations: 71.36 kB / 272.2 MB, free: 2.449 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.004956, allocations: 99.17 kB / 272.3 MB, free: 2.352 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002279/0.005184, allocations: 103.8 kB / 272.4 MB, free: 2.25 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002761/0.00546, allocations: 394.3 kB / 272.8 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.005612, allocations: 109.9 kB / 272.9 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.005864, allocations: 231.4 kB / 273.1 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/0.006005, allocations: 123.6 kB / 273.2 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/0.006042, allocations: 32 kB / 273.2 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.114e-05/0.006073, allocations: 32 kB / 273.3 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.535e-05/0.006119, allocations: 83.67 kB / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.953e-05/0.006198, allocations: 119.7 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.006434, allocations: 251 kB / 273.7 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.053e-06/0.006436, allocations: 0 / 273.7 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.006437, allocations: 0 / 273.7 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.006441, allocations: 4 kB / 273.7 MB, free: 0.8945 MB / 250.7 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.0005854/0.007027, allocations: 0.5311 MB / 274.3 MB, free: 348 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.942e-05/0.007056, allocations: 8.031 kB / 274.3 MB, free: 340 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.924e-05/0.007116, allocations: 52.89 kB / 274.3 MB, free: 288 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.007301, allocations: 185.2 kB / 274.5 MB, free: 76 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.007324, allocations: 25.03 kB / 274.5 MB, free: 52 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.231e-05/0.007357, allocations: 32.38 kB / 274.6 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.007602, allocations: 215.2 kB / 274.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.007611, allocations: 192 / 274.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.007628, allocations: 16.38 kB / 274.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.007635, allocations: 11.94 kB / 274.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001053/0.007741, allocations: 76.55 kB / 274.9 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008389/0.00858, allocations: 0.76 MB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.008706, allocations: 78.53 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.098e-05/0.008747, allocations: 28.84 kB / 275.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.008768, allocations: 7.938 kB / 275.7 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.008788, allocations: 30.56 kB / 275.8 MB, free: 14.72 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.00879, allocations: 4 kB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007322/0.009522, allocations: 404.1 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.529e-05/0.009547, allocations: 51.41 kB / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.00968, allocations: 252.8 kB / 276.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.009692, allocations: 25.7 kB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.147e-05/0.009784, allocations: 216.1 kB / 276.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.736e-05/0.009821, allocations: 83.25 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.233e-05/0.009883, allocations: 65.62 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.01004, allocations: 338.8 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.331e-05/0.01008, allocations: 27.98 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.686e-05/0.01017, allocations: 139.7 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.01031, allocations: 185.1 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.01031, allocations: 4 kB / 277.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002331/0.01055, allocations: 233.2 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.01056, allocations: 8 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.01057, allocations: 4 kB / 277.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002344/0.0108, allocations: 74 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.01095, allocations: 67.89 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.01205, allocations: 2.373 MB / 280.3 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.01216, allocations: 23.92 kB / 280.3 MB, free: 9.844 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.01217, allocations: 12 kB / 280.3 MB, free: 9.832 MB / 266.7 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 9.767e-05/0.01227, allocations: 125.8 kB / 280.4 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.01231, allocations: 28.05 kB / 280.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/0.01234, allocations: 30.27 kB / 280.5 MB, free: 9.641 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.01234, allocations: 4 kB / 280.5 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.01235, allocations: 0 / 280.5 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.01235, allocations: 3.938 kB / 280.5 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.0125, allocations: 149.8 kB / 280.6 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.01251, allocations: 3.984 kB / 280.7 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.478e-05/0.01259, allocations: 39.92 kB / 280.7 MB, free: 9.426 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000181/0.01277, allocations: 61.66 kB / 280.7 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.01278, allocations: 8 kB / 280.8 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009865/0.01377, allocations: 2.369 MB / 283.1 MB, free: 6.812 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.01377, allocations: 0 / 283.1 MB, free: 6.812 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001885/0.01396, allocations: 241 kB / 283.4 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.032e-05/0.01398, allocations: 23.81 kB / 283.4 MB, free: 6.531 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.01399, allocations: 7.938 kB / 283.4 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.678e-05/0.01407, allocations: 11.98 kB / 283.4 MB, free: 6.512 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.387e-05/0.01411, allocations: 15.97 kB / 283.4 MB, free: 6.496 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-06/0.01412, allocations: 12.06 kB / 283.4 MB, free: 6.484 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.06e-05/0.01418, allocations: 78.77 kB / 283.5 MB, free: 6.406 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01418, allocations: 0 / 283.5 MB, free: 6.406 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002312/0.01441, allocations: 76 kB / 283.6 MB, free: 6.332 MB / 266.7 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 8.475e-05/0.0145, allocations: 84.36 kB / 283.7 MB, free: 6.238 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004029/0.0149, allocations: 361.8 kB / 284 MB, free: 5.855 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.01491, allocations: 7.938 kB / 284 MB, free: 5.848 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.01508, allocations: 293 kB / 284.3 MB, free: 5.535 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001882/0.01527, allocations: 37.23 kB / 284.3 MB, free: 5.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007721/0.01604, allocations: 0.5089 MB / 284.9 MB, free: 4.965 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.544e-05/0.0161, allocations: 100.3 kB / 285 MB, free: 4.848 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.476e-05/0.01617, allocations: 26.3 kB / 285 MB, free: 4.824 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.832e-05/0.01626, allocations: 83.36 kB / 285.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01626, allocations: 0 / 285.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of Templates: time 0.004914/0.02118, allocations: 2.921 MB / 288 MB, free: 1.855 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/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.7124136239290237]