Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.001286/0.001286, 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.001496/0.001496, allocations: 148.4 kB / 24.89 MB, free: 9.164 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.9488/0.9488, allocations: 173.3 MB / 201.5 MB, free: 9.18 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.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 268.5 MB, free: 6.121 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.893e-05/3.092e-05, allocations: 6.25 kB / 268.5 MB, free: 6.113 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006409/0.00644, allocations: 4.908 MB / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003341/0.009781, allocations: 2.093 MB / 275.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004976/0.01028, allocations: 16 kB / 275.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001751/0.01203, allocations: 1.474 MB / 277 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001228/0.01326, allocations: 0.5706 MB / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001459/0.01472, allocations: 1.007 MB / 278.6 MB, free: 12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008443/0.01556, allocations: 0.7703 MB / 279.4 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007995/0.01636, allocations: 0.6123 MB / 280 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006572/0.01702, allocations: 483 kB / 280.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004242/0.01744, allocations: 339.1 kB / 280.8 MB, free: 9.793 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.01754, allocations: 71.94 kB / 280.9 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008183/0.01836, allocations: 395.3 kB / 281.2 MB, free: 9.336 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.34e-05/0.01845, allocations: 163.4 kB / 281.4 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.01862, allocations: 263.3 kB / 281.7 MB, free: 8.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.01973, allocations: 0.8759 MB / 282.5 MB, free: 8.039 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.01973, allocations: 0 / 282.5 MB, free: 8.039 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.01974, allocations: 0 / 282.5 MB, free: 8.039 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.01975, allocations: 3.938 kB / 282.5 MB, free: 8.035 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.002507/0.02226, allocations: 1.428 MB / 284 MB, free: 6.578 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.0223, allocations: 12.92 kB / 284 MB, free: 6.566 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00148/0.02377, allocations: 0.5391 MB / 284.5 MB, free: 6.027 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.02395, allocations: 189.6 kB / 284.7 MB, free: 5.812 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/0.02402, allocations: 66.38 kB / 284.8 MB, free: 5.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.02412, allocations: 76.38 kB / 284.8 MB, free: 5.676 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008192/0.02494, allocations: 0.6519 MB / 285.5 MB, free: 5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.02496, allocations: 4.141 kB / 285.5 MB, free: 4.996 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.025, allocations: 40.31 kB / 285.5 MB, free: 4.957 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.02502, allocations: 31.92 kB / 285.6 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003703/0.02539, allocations: 285.8 kB / 285.8 MB, free: 4.648 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002188/0.02758, allocations: 1.883 MB / 287.7 MB, free: 2.664 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003798/0.02796, allocations: 350.5 kB / 288.1 MB, free: 2.309 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.851e-05/0.02806, allocations: 98.31 kB / 288.2 MB, free: 2.211 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.29e-05/0.02812, allocations: 20.48 kB / 288.2 MB, free: 2.191 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.02814, allocations: 39.06 kB / 288.2 MB, free: 2.145 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 2.114e-06/0.02815, allocations: 0 / 288.2 MB, free: 2.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.0008972/0.02904, allocations: 0.5638 MB / 288.8 MB, free: 1.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.02908, allocations: 85.61 kB / 288.9 MB, free: 1.469 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.02923, allocations: 290.6 kB / 289.2 MB, free: 1.168 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.02926, allocations: 33.7 kB / 289.2 MB, free: 1.129 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.02939, allocations: 371.8 kB / 289.5 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.465e-05/0.02948, allocations: 210.1 kB / 289.8 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.0296, allocations: 138.5 kB / 289.9 MB, free: 416 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.137e-05/0.02968, allocations: 350.7 kB / 290.2 MB, free: 56 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1018/0.1315, allocations: 71.83 kB / 290.3 MB, free: 22.74 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.1317, allocations: 342.6 kB / 290.6 MB, free: 22.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/0.1321, allocations: 464.1 kB / 291.1 MB, free: 22.17 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.1321, allocations: 2.312 kB / 291.1 MB, free: 22.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0005563/0.1327, allocations: 467.1 kB / 291.5 MB, free: 22.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.1327, allocations: 12.31 kB / 291.6 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.1327, allocations: 7.5 kB / 291.6 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002761/0.133, allocations: 82.17 kB / 291.6 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003728/0.1333, allocations: 172 kB / 291.8 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008228/0.1342, allocations: 2.391 MB / 294.2 MB, free: 19.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.1344, allocations: 83.06 kB / 294.3 MB, free: 19.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.1345, allocations: 29.22 kB / 294.3 MB, free: 19.85 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (92): * Single equations (assignments): 90 * 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.0001391/0.1346, allocations: 158.9 kB / 294.5 MB, free: 19.74 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.657e-05/0.1347, allocations: 44.88 kB / 294.5 MB, free: 19.74 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004212/0.1351, allocations: 348.9 kB / 294.9 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1351, allocations: 9.344 kB / 294.9 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1351, allocations: 5.625 kB / 294.9 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1351, allocations: 3.422 kB / 294.9 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007436/0.1359, allocations: 0.6534 MB / 295.5 MB, free: 19.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1359, allocations: 0.6562 kB / 295.5 MB, free: 19.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.1361, allocations: 101.9 kB / 295.6 MB, free: 19.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001909/0.1363, allocations: 74.91 kB / 295.7 MB, free: 19.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.1363, allocations: 12.42 kB / 295.7 MB, free: 19.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006848/0.137, allocations: 2.385 MB / 298.1 MB, free: 17.2 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.137, allocations: 6.547 kB / 298.1 MB, free: 17.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004709/0.1375, allocations: 483.2 kB / 298.6 MB, free: 17.03 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.34e-05/0.1376, allocations: 53.56 kB / 298.6 MB, free: 17.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.883e-05/0.1376, allocations: 14.48 kB / 298.6 MB, free: 17.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.1378, allocations: 21.08 kB / 298.7 MB, free: 17.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.756e-05/0.1378, allocations: 42.06 kB / 298.7 MB, free: 17.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.1379, allocations: 11.25 kB / 298.7 MB, free: 17.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.952e-05/0.1379, allocations: 92.98 kB / 298.8 MB, free: 17 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1379, allocations: 1.031 kB / 298.8 MB, free: 17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004769/0.1384, allocations: 216.5 kB / 299 MB, free: 16.98 MB / 266.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 (55): * Single equations (assignments): 53 * 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.0001848/0.1386, allocations: 142.2 kB / 299.2 MB, free: 16.9 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005157/0.1391, allocations: 0.5575 MB / 299.7 MB, free: 16.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/0.1391, allocations: 7.469 kB / 299.7 MB, free: 16.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.1394, allocations: 386.3 kB / 300.1 MB, free: 16.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.1396, allocations: 55.89 kB / 300.2 MB, free: 16.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.1411, allocations: 1.09 MB / 301.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.785e-05/0.1412, allocations: 136.7 kB / 301.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002245/0.1414, allocations: 83.5 kB / 301.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.1416, allocations: 121.8 kB / 301.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1416, allocations: 0 / 301.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of Templates: time 0.00952/0.1511, allocations: 6.299 MB / 307.9 MB, free: 14.68 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.712840481195599]