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.0009343/0.0009343, allocations: 79.75 kB / 21.18 MB, free: 3.379 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.0009597/0.0009597, allocations: 161 kB / 24.56 MB, free: 12 kB / 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.9141/0.9141, allocations: 177.1 MB / 205 MB, free: 5.578 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.203e-06/1.203e-06, allocations: 0 / 273 MB, free: 1.492 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.25e-05/1.371e-05, allocations: 2.312 kB / 273 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005383/0.005397, allocations: 6.603 MB / 279.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003404/0.008801, allocations: 2.393 MB / 282 MB, free: 8.449 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003602/0.009161, allocations: 20 kB / 282 MB, free: 8.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002058/0.01122, allocations: 1.999 MB / 284 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009534/0.01217, allocations: 0.5548 MB / 284.6 MB, free: 5.863 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.01355, allocations: 1.281 MB / 285.8 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008406/0.01439, allocations: 1.156 MB / 287 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007753/0.01516, allocations: 0.8251 MB / 287.8 MB, free: 2.566 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007442/0.01591, allocations: 0.7131 MB / 288.5 MB, free: 1.852 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003699/0.01628, allocations: 486.7 kB / 289 MB, free: 1.375 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.824e-05/0.01636, allocations: 104 kB / 289.1 MB, free: 1.273 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005369/0.0169, allocations: 427.3 kB / 289.5 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.01701, allocations: 251 kB / 289.8 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002256/0.01724, allocations: 390.9 kB / 290.2 MB, free: 232 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1025/0.1198, allocations: 1.187 MB / 291.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1198, allocations: 1.094 kB / 291.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1198, allocations: 0 / 291.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.212e-05/0.1198, allocations: 0 / 291.3 MB, free: 16.71 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.004743/0.1245, allocations: 2.087 MB / 293.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1246, allocations: 10.97 kB / 293.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002867/0.1274, allocations: 0.7084 MB / 294.2 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002677/0.1277, allocations: 250.7 kB / 294.4 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.3e-05/0.1278, allocations: 97.14 kB / 294.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/0.128, allocations: 132.5 kB / 294.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.1295, allocations: 1.039 MB / 295.7 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.45e-05/0.1295, allocations: 1.156 kB / 295.7 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.678e-05/0.1296, allocations: 51.91 kB / 295.7 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.786e-05/0.1296, allocations: 38.66 kB / 295.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.1308, allocations: 0.6496 MB / 296.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003975/0.1348, allocations: 3.247 MB / 299.6 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.136, allocations: 0.9838 MB / 300.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003776/0.1364, allocations: 297.9 kB / 300.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.999e-05/0.1365, allocations: 48.19 kB / 301 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.1365, allocations: 47.66 kB / 301 MB, free: 14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=122): time 2.565e-06/0.1365, allocations: 1.812 kB / 301 MB, free: 14 MB / 266.7 MB Notification: Performance of matching and sorting (n=125): time 0.003784/0.1403, allocations: 2.414 MB / 303.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.1403, allocations: 92.89 kB / 303.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.1406, allocations: 422.9 kB / 303.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.334e-05/0.1406, allocations: 45.36 kB / 304 MB, free: 12.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.1407, allocations: 0.5084 MB / 304.5 MB, free: 12.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.1409, allocations: 449.1 kB / 304.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.1411, allocations: 249.5 kB / 305.2 MB, free: 11.83 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.402e-05/0.1412, allocations: 0.5493 MB / 305.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002923/0.1415, allocations: 215.9 kB / 305.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/0.1418, allocations: 0.6029 MB / 306.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007344/0.1426, allocations: 0.8594 MB / 307.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1426, allocations: 2.719 kB / 307.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00115/0.1437, allocations: 1.09 MB / 308.5 MB, free: 9.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.1438, allocations: 10.47 kB / 308.5 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.1438, allocations: 6.969 kB / 308.5 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005478/0.1443, allocations: 262.6 kB / 308.8 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005445/0.1449, allocations: 274.7 kB / 309 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001833/0.1467, allocations: 4.851 MB / 313.9 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/0.147, allocations: 50.94 kB / 313.9 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.031e-05/0.1471, allocations: 57.73 kB / 314 MB, free: 5.453 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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.0001778/0.1473, allocations: 237.9 kB / 314.2 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1474, allocations: 112.8 kB / 314.3 MB, free: 5.191 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001011/0.1484, allocations: 0.94 MB / 315.3 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1484, allocations: 12 kB / 315.3 MB, free: 4.656 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1484, allocations: 4 kB / 315.3 MB, free: 4.652 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.1484, allocations: 7.984 kB / 315.3 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.1502, allocations: 1.855 MB / 317.1 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.1502, allocations: 0 / 317.1 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004127/0.1506, allocations: 197.2 kB / 317.3 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000455/0.151, allocations: 229.8 kB / 317.6 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.1511, allocations: 27.98 kB / 317.6 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001917/0.153, allocations: 4.713 MB / 322.3 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.153, allocations: 4 kB / 322.3 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/0.1544, allocations: 1.259 MB / 323.6 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.1546, allocations: 155.4 kB / 323.7 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.676e-05/0.1547, allocations: 24 kB / 323.7 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.155, allocations: 39.98 kB / 323.8 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.1551, allocations: 96.09 kB / 323.9 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/0.1551, allocations: 38.42 kB / 323.9 MB, free: 11.8 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001638/0.1553, allocations: 271 kB / 324.2 MB, free: 11.54 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1553, allocations: 0 / 324.2 MB, free: 11.54 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006786/0.156, allocations: 304 kB / 324.5 MB, free: 11.24 MB / 282.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 (106): * Single equations (assignments): 104 * 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.0002239/0.1562, allocations: 176.1 kB / 324.6 MB, free: 11.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.1578, allocations: 1.175 MB / 325.8 MB, free: 9.895 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1578, allocations: 0 / 325.8 MB, free: 9.895 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006713/0.1585, allocations: 0.7902 MB / 326.6 MB, free: 9.086 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.1588, allocations: 83.31 kB / 326.7 MB, free: 9.008 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.1612, allocations: 1.742 MB / 328.4 MB, free: 7.227 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.1613, allocations: 194.7 kB / 328.6 MB, free: 7.016 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003284/0.1616, allocations: 146.6 kB / 328.8 MB, free: 6.867 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001881/0.1618, allocations: 84.45 kB / 328.8 MB, free: 6.785 MB / 282.7 MB Notification: Performance of SimCode: time 1.223e-06/0.1618, allocations: 0 / 328.8 MB, free: 6.785 MB / 282.7 MB Notification: Performance of Templates: time 0.01391/0.1757, allocations: 11.17 MB / 340 MB, free: 11.87 MB / 298.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 -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.8267221399582922]