Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.0009438/0.0009438, allocations: 80.8 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.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.0009381/0.0009381, allocations: 174.4 kB / 24.92 MB, free: 8.723 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.9382/0.9382, allocations: 177.1 MB / 205.3 MB, free: 5.07 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.QuadraticCoreAirgap,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.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,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.QuadraticCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 273.5 MB, free: 1.094 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.084e-05/1.213e-05, allocations: 2.312 kB / 273.5 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004958/0.00497, allocations: 6.458 MB / 280 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.00759, allocations: 2.478 MB / 282.4 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/0.007823, allocations: 20 kB / 282.5 MB, free: 8.094 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001825/0.009648, allocations: 1.991 MB / 284.5 MB, free: 6.094 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007392/0.01039, allocations: 0.5547 MB / 285 MB, free: 5.535 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.01163, allocations: 1.263 MB / 286.3 MB, free: 4.273 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007428/0.01237, allocations: 1.159 MB / 287.4 MB, free: 3.105 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007531/0.01312, allocations: 0.8915 MB / 288.3 MB, free: 2.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004941/0.01362, allocations: 0.6976 MB / 289 MB, free: 1.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000385/0.014, allocations: 498.6 kB / 289.5 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.882e-05/0.01409, allocations: 100 kB / 289.6 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005979/0.01469, allocations: 443.4 kB / 290 MB, free: 472 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.01482, allocations: 251 kB / 290.3 MB, free: 220 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1041/0.1189, allocations: 386.4 kB / 290.7 MB, free: 16.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001638/0.1205, allocations: 1.188 MB / 291.8 MB, free: 16.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1205, allocations: 0.5312 kB / 291.9 MB, free: 16.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1205, allocations: 0 / 291.9 MB, free: 16.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.623e-05/0.1206, allocations: 1.094 kB / 291.9 MB, free: 16.59 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.00369/0.1243, allocations: 2.053 MB / 293.9 MB, free: 15.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.1243, allocations: 10.19 kB / 293.9 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002191/0.1265, allocations: 0.7499 MB / 294.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.1267, allocations: 245.3 kB / 294.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.461e-05/0.1268, allocations: 97.58 kB / 295 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.1269, allocations: 135.3 kB / 295.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.128, allocations: 0.936 MB / 296.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/0.128, allocations: 3.141 kB / 296.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.164e-05/0.1281, allocations: 52.8 kB / 296.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.322e-05/0.1281, allocations: 36.97 kB / 296.2 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006433/0.1287, allocations: 430.7 kB / 296.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003207/0.1319, allocations: 2.648 MB / 299.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008511/0.1328, allocations: 0.8112 MB / 300 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00024/0.133, allocations: 214.9 kB / 300.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-05/0.1331, allocations: 48.27 kB / 300.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.1331, allocations: 50.16 kB / 300.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=122): time 2.244e-06/0.1332, allocations: 0 / 300.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.001786/0.1349, allocations: 1.264 MB / 301.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.135, allocations: 93.45 kB / 301.7 MB, free: 14.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.1351, allocations: 350 kB / 302 MB, free: 14.28 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.1352, allocations: 44.14 kB / 302.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1353, allocations: 456.3 kB / 302.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.1354, allocations: 432.3 kB / 303 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/0.1356, allocations: 223.1 kB / 303.2 MB, free: 13.63 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.434e-05/0.1357, allocations: 377.9 kB / 303.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.1358, allocations: 140.5 kB / 303.7 MB, free: 13.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.136, allocations: 430.4 kB / 304.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004431/0.1365, allocations: 0.6382 MB / 304.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.1365, allocations: 3 kB / 304.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.0006571/0.1371, allocations: 0.7456 MB / 305.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1371, allocations: 9.375 kB / 305.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.1372, allocations: 5.406 kB / 305.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004912/0.1376, allocations: 242 kB / 305.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005155/0.1382, allocations: 268.3 kB / 306 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.1396, allocations: 3.362 MB / 309.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.1399, allocations: 126.4 kB / 309.5 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.1399, allocations: 37.58 kB / 309.5 MB, free: 9.816 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (143): * Single equations (assignments): 141 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001428/0.1401, allocations: 181.6 kB / 309.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.858e-05/0.1402, allocations: 85.25 kB / 309.8 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006401/0.1408, allocations: 0.6826 MB / 310.5 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1408, allocations: 15.78 kB / 310.5 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.1408, allocations: 7.156 kB / 310.5 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1408, allocations: 3.75 kB / 310.5 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.142, allocations: 1.235 MB / 311.7 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.142, allocations: 2.953 kB / 311.7 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003562/0.1424, allocations: 187.3 kB / 311.9 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000385/0.1427, allocations: 213.4 kB / 312.1 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.488e-05/0.1428, allocations: 27.92 kB / 312.1 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.1439, allocations: 3.234 MB / 315.4 MB, free: 5.156 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1439, allocations: 7.656 kB / 315.4 MB, free: 5.152 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006915/0.1446, allocations: 0.8623 MB / 316.2 MB, free: 4.293 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.1448, allocations: 99.3 kB / 316.3 MB, free: 4.195 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.324e-05/0.1448, allocations: 24.06 kB / 316.4 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.145, allocations: 35.98 kB / 316.4 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.1451, allocations: 84.77 kB / 316.5 MB, free: 4.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.1451, allocations: 31.73 kB / 316.5 MB, free: 4.027 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.354e-05/0.1452, allocations: 139.8 kB / 316.7 MB, free: 3.906 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1452, allocations: 0 / 316.7 MB, free: 3.906 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000555/0.1457, allocations: 366.2 kB / 317 MB, free: 3.551 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (103): * Single equations (assignments): 101 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001651/0.1459, allocations: 162.6 kB / 317.2 MB, free: 3.398 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000639/0.1466, allocations: 0.8945 MB / 318.1 MB, free: 2.531 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/0.1466, allocations: 4.5 kB / 318.1 MB, free: 2.527 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.1469, allocations: 0.6021 MB / 318.7 MB, free: 1.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.1471, allocations: 77.11 kB / 318.7 MB, free: 1.859 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.1488, allocations: 1.658 MB / 320.4 MB, free: 196 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.1489, allocations: 191.7 kB / 320.6 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003177/0.1492, allocations: 138.4 kB / 320.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002394/0.1495, allocations: 159.3 kB / 320.9 MB, free: 15.68 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1495, allocations: 0 / 320.9 MB, free: 15.68 MB / 282.7 MB Notification: Performance of Templates: time 0.01269/0.1622, allocations: 10.75 MB / 331.6 MB, free: 5.152 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.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.754726084880531]