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.0008506/0.0008506, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0009067/0.0009067, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.966/0.966, allocations: 173.3 MB / 201.5 MB, free: 9.312 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.223e-06/1.223e-06, allocations: 3.938 kB / 268.1 MB, free: 6.695 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.351e-05/1.473e-05, allocations: 2.312 kB / 268.1 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004227/0.004242, allocations: 4.954 MB / 273 MB, free: 1.711 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.006776, allocations: 2.027 MB / 275.1 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002251/0.007001, allocations: 16 kB / 275.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.008666, allocations: 1.478 MB / 276.6 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008247/0.00949, allocations: 0.5668 MB / 277.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.01061, allocations: 1.016 MB / 278.1 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000689/0.0113, allocations: 0.7625 MB / 278.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006953/0.012, allocations: 0.5753 MB / 279.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00044/0.01244, allocations: 486.9 kB / 280 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002844/0.01272, allocations: 331.1 kB / 280.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.183e-05/0.01279, allocations: 68 kB / 280.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005222/0.01331, allocations: 379.3 kB / 280.7 MB, free: 9.992 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.73e-05/0.0134, allocations: 171.3 kB / 280.9 MB, free: 9.824 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.01358, allocations: 259.3 kB / 281.1 MB, free: 9.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008521/0.01443, allocations: 0.8759 MB / 282 MB, free: 8.691 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.01443, allocations: 4 kB / 282 MB, free: 8.688 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.01443, allocations: 0 / 282 MB, free: 8.688 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.01444, allocations: 0 / 282 MB, free: 8.688 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.002444/0.01689, allocations: 1.494 MB / 283.5 MB, free: 7.152 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.01692, allocations: 12.92 kB / 283.5 MB, free: 7.141 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.01848, allocations: 0.5115 MB / 284 MB, free: 6.629 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.01863, allocations: 192.4 kB / 284.2 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.01867, allocations: 62.38 kB / 284.3 MB, free: 6.352 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.01877, allocations: 92.31 kB / 284.4 MB, free: 6.262 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000855/0.01963, allocations: 0.7084 MB / 285.1 MB, free: 5.527 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.01965, allocations: 4.188 kB / 285.1 MB, free: 5.523 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.17e-05/0.0197, allocations: 36.38 kB / 285.1 MB, free: 5.488 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.01972, allocations: 23.94 kB / 285.2 MB, free: 5.465 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006457/0.02036, allocations: 431.7 kB / 285.6 MB, free: 5.047 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.02272, allocations: 2.299 MB / 287.9 MB, free: 2.629 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005233/0.02325, allocations: 418.9 kB / 288.3 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.02342, allocations: 133.1 kB / 288.4 MB, free: 2.074 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.719e-05/0.02347, allocations: 16.5 kB / 288.4 MB, free: 2.059 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.02349, allocations: 45.89 kB / 288.5 MB, free: 2.004 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.843e-06/0.02349, allocations: 0 / 288.5 MB, free: 2.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002298/0.02579, allocations: 1.334 MB / 289.8 MB, free: 0.625 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.02582, allocations: 93.55 kB / 289.9 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.02604, allocations: 358 kB / 290.2 MB, free: 156 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.02607, allocations: 33.7 kB / 290.3 MB, free: 116 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.09479/0.1209, allocations: 418.4 kB / 290.7 MB, free: 32.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.121, allocations: 225.9 kB / 290.9 MB, free: 31.97 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.1212, allocations: 158.6 kB / 291.1 MB, free: 31.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.771e-05/0.1213, allocations: 0.522 MB / 291.6 MB, free: 31.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.1215, allocations: 119.9 kB / 291.7 MB, free: 31.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.1218, allocations: 498.4 kB / 292.2 MB, free: 31 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005471/0.1224, allocations: 0.6192 MB / 292.8 MB, free: 30.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.1224, allocations: 2.25 kB / 292.8 MB, free: 30.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0008839/0.1232, allocations: 0.6613 MB / 293.5 MB, free: 30.47 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.1233, allocations: 8.781 kB / 293.5 MB, free: 30.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.1233, allocations: 8.703 kB / 293.5 MB, free: 30.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000313/0.1236, allocations: 92.47 kB / 293.6 MB, free: 30.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004578/0.1241, allocations: 187.5 kB / 293.8 MB, free: 30.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/0.1251, allocations: 3.548 MB / 297.3 MB, free: 26.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.1254, allocations: 52.14 kB / 297.4 MB, free: 26.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.1254, allocations: 38.56 kB / 297.4 MB, free: 26.96 MB / 266.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.0001446/0.1255, allocations: 205.8 kB / 297.6 MB, free: 26.78 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.489e-05/0.1256, allocations: 65.38 kB / 297.7 MB, free: 26.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006906/0.1263, allocations: 497.6 kB / 298.1 MB, free: 26.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1263, allocations: 5.844 kB / 298.2 MB, free: 26.61 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1263, allocations: 9.266 kB / 298.2 MB, free: 26.61 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1263, allocations: 3.469 kB / 298.2 MB, free: 26.61 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.1274, allocations: 1.017 MB / 299.2 MB, free: 26.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1274, allocations: 0 / 299.2 MB, free: 26.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.1277, allocations: 120.9 kB / 299.3 MB, free: 26.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002192/0.1279, allocations: 85.14 kB / 299.4 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.128, allocations: 18.17 kB / 299.4 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008157/0.1288, allocations: 3.551 MB / 303 MB, free: 22.44 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1288, allocations: 0 / 303 MB, free: 22.44 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007846/0.1296, allocations: 0.7014 MB / 303.7 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.1297, allocations: 85.23 kB / 303.7 MB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.143e-05/0.1297, allocations: 15.89 kB / 303.8 MB, free: 22.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.1299, allocations: 33.53 kB / 303.8 MB, free: 22.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.577e-05/0.13, allocations: 48.36 kB / 303.8 MB, free: 22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.1301, allocations: 19.92 kB / 303.9 MB, free: 22 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001167/0.1302, allocations: 222.7 kB / 304.1 MB, free: 21.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1302, allocations: 0 / 304.1 MB, free: 21.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004633/0.1306, allocations: 171.8 kB / 304.2 MB, free: 21.83 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 (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.000187/0.1308, allocations: 162.3 kB / 304.4 MB, free: 21.72 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007109/0.1315, allocations: 0.7541 MB / 305.2 MB, free: 21.29 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1315, allocations: 4 kB / 305.2 MB, free: 21.29 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003373/0.1319, allocations: 0.5424 MB / 305.7 MB, free: 20.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.1321, allocations: 60.55 kB / 305.8 MB, free: 20.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.1337, allocations: 1.128 MB / 306.9 MB, free: 20.24 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.556e-05/0.1338, allocations: 140.9 kB / 307 MB, free: 20.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002462/0.1341, allocations: 91.5 kB / 307.1 MB, free: 20.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.1342, allocations: 53.47 kB / 307.2 MB, free: 20.11 MB / 266.7 MB Notification: Performance of SimCode: time 7.12e-07/0.1342, allocations: 1.281 kB / 307.2 MB, free: 20.11 MB / 266.7 MB Notification: Performance of Templates: time 0.007784/0.142, allocations: 6.311 MB / 313.5 MB, free: 17.6 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 -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.742232989985496]