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.0009633/0.0009633, allocations: 81.97 kB / 22.21 MB, free: 2.285 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.001022/0.001022, allocations: 171.1 kB / 25.61 MB, free: 8.855 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.9041/0.9041, allocations: 177.1 MB / 206 MB, free: 4.496 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.413e-06/1.413e-06, allocations: 0 / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.211e-05/2.352e-05, allocations: 3.5 kB / 274.2 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.006047/0.00607, allocations: 6.405 MB / 280.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003081/0.009152, allocations: 2.374 MB / 283 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003624/0.009514, allocations: 24 kB / 283 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001985/0.0115, allocations: 1.932 MB / 284.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000958/0.01246, allocations: 0.5548 MB / 285.5 MB, free: 9.066 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001375/0.01383, allocations: 1.249 MB / 286.7 MB, free: 7.812 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009179/0.01475, allocations: 1.159 MB / 287.9 MB, free: 6.648 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008362/0.01559, allocations: 0.8252 MB / 288.7 MB, free: 5.793 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006207/0.01621, allocations: 0.7015 MB / 289.4 MB, free: 5.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004437/0.01665, allocations: 494.6 kB / 289.9 MB, free: 4.605 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.01676, allocations: 100 kB / 290 MB, free: 4.508 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006668/0.01742, allocations: 427.3 kB / 290.4 MB, free: 4.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.01756, allocations: 255 kB / 290.7 MB, free: 3.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002592/0.01782, allocations: 383 kB / 291.1 MB, free: 3.465 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.01898, allocations: 1.191 MB / 292.2 MB, free: 2.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.01898, allocations: 0 / 292.2 MB, free: 2.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.01898, allocations: 0 / 292.2 MB, free: 2.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.01899, allocations: 0 / 292.2 MB, free: 2.27 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.003366/0.02236, allocations: 2.107 MB / 294.4 MB, free: 124 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.02239, allocations: 12.03 kB / 294.4 MB, free: 112 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002133/0.02452, allocations: 0.7062 MB / 295.1 MB, free: 15.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.02473, allocations: 247.1 kB / 295.3 MB, free: 15.13 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.378e-05/0.02479, allocations: 94.95 kB / 295.4 MB, free: 15.04 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.02492, allocations: 132.4 kB / 295.5 MB, free: 14.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.02596, allocations: 0.9411 MB / 296.5 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.015e-05/0.02599, allocations: 12.06 kB / 296.5 MB, free: 13.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.52e-05/0.02607, allocations: 56.38 kB / 296.5 MB, free: 13.86 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.02609, allocations: 35.94 kB / 296.6 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00064/0.02673, allocations: 0.5193 MB / 297.1 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00357/0.0303, allocations: 3.261 MB / 300.4 MB, free: 9.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008909/0.03119, allocations: 0.9133 MB / 301.3 MB, free: 9.016 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/0.03146, allocations: 252.6 kB / 301.5 MB, free: 8.77 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.032e-05/0.03155, allocations: 44.97 kB / 301.6 MB, free: 8.723 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000141/0.03169, allocations: 50.33 kB / 301.6 MB, free: 8.664 MB / 282.7 MB Notification: Performance of pre-optimization done (n=122): time 2.544e-06/0.03169, allocations: 0 / 301.6 MB, free: 8.664 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.003184/0.03487, allocations: 2.11 MB / 303.7 MB, free: 6.512 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.03491, allocations: 90.11 kB / 303.8 MB, free: 6.402 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.03514, allocations: 422.2 kB / 304.2 MB, free: 5.977 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.514e-05/0.03519, allocations: 45.7 kB / 304.3 MB, free: 5.926 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.03538, allocations: 0.507 MB / 304.8 MB, free: 5.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004614/0.03584, allocations: 456.1 kB / 305.2 MB, free: 4.961 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002229/0.03606, allocations: 249 kB / 305.5 MB, free: 4.711 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.0362, allocations: 0.5624 MB / 306 MB, free: 4.137 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.03641, allocations: 163.8 kB / 306.2 MB, free: 3.977 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003783/0.03679, allocations: 0.5553 MB / 306.7 MB, free: 3.281 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006621/0.03745, allocations: 0.7721 MB / 307.5 MB, free: 2.379 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.03746, allocations: 0 / 307.5 MB, free: 2.379 MB / 282.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.001097/0.03855, allocations: 0.9875 MB / 308.5 MB, free: 1.375 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.03857, allocations: 8 kB / 308.5 MB, free: 1.367 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.03858, allocations: 4.344 kB / 308.5 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005636/0.03915, allocations: 257.9 kB / 308.8 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005867/0.03973, allocations: 271.5 kB / 309 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002716/0.04245, allocations: 4.745 MB / 313.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.04282, allocations: 55.94 kB / 313.8 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.958e-05/0.04287, allocations: 43.98 kB / 313.9 MB, free: 11.77 MB / 298.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.0002121/0.04308, allocations: 236.2 kB / 314.1 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.0432, allocations: 115.5 kB / 314.2 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009914/0.0442, allocations: 0.8524 MB / 315.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.0442, allocations: 12 kB / 315.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.04421, allocations: 8 kB / 315.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.04421, allocations: 3.984 kB / 315.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.04599, allocations: 1.659 MB / 316.7 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.04599, allocations: 0 / 316.7 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004503/0.04644, allocations: 195.7 kB / 316.9 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004789/0.04692, allocations: 227.2 kB / 317.2 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.04696, allocations: 35.98 kB / 317.2 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002274/0.04923, allocations: 4.617 MB / 321.8 MB, free: 3.508 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.04924, allocations: 0 / 321.8 MB, free: 3.508 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.05037, allocations: 1.128 MB / 322.9 MB, free: 2.336 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001876/0.05056, allocations: 147.5 kB / 323.1 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.376e-05/0.05062, allocations: 27.94 kB / 323.1 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.05089, allocations: 43.97 kB / 323.2 MB, free: 2.121 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.051, allocations: 96.75 kB / 323.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.05104, allocations: 27.98 kB / 323.3 MB, free: 2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001231/0.05116, allocations: 255 kB / 323.5 MB, free: 1.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.05116, allocations: 32 / 323.5 MB, free: 1.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000694/0.05185, allocations: 311.9 kB / 323.8 MB, free: 1.445 MB / 298.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.000207/0.05206, allocations: 183 kB / 324 MB, free: 1.258 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009738/0.05303, allocations: 1.088 MB / 325.1 MB, free: 140 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.05304, allocations: 0 / 325.1 MB, free: 140 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005393/0.05358, allocations: 0.7456 MB / 325.8 MB, free: 15.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003484/0.05392, allocations: 93.48 kB / 325.9 MB, free: 15.26 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.05631, allocations: 1.712 MB / 327.6 MB, free: 13.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.05644, allocations: 195.8 kB / 327.8 MB, free: 13.28 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003387/0.05678, allocations: 138.6 kB / 328 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/0.05705, allocations: 194.2 kB / 328.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of SimCode: time 6.71e-07/0.05705, allocations: 0 / 328.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of Templates: time 0.01538/0.07243, allocations: 11.6 MB / 339.8 MB, free: 1.496 MB / 314.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: 3.0324172428809106]