Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001383/0.001383, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001491/0.001491, allocations: 162.8 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9208/0.9208, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.52e-07/9.52e-07, allocations: 0 / 274.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.759e-06/1.071e-05, allocations: 7.75 kB / 274.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004904/0.004914, allocations: 6.403 MB / 280.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00316/0.008074, allocations: 2.381 MB / 282.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002803/0.008354, allocations: 24 kB / 282.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001914/0.01027, allocations: 1.936 MB / 284.9 MB, free: 9.488 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008061/0.01107, allocations: 0.547 MB / 285.4 MB, free: 8.938 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.01236, allocations: 1.243 MB / 286.7 MB, free: 7.691 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008908/0.01325, allocations: 1.159 MB / 287.8 MB, free: 6.527 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008895/0.01414, allocations: 0.8253 MB / 288.7 MB, free: 5.676 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000611/0.01475, allocations: 0.7053 MB / 289.4 MB, free: 4.969 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004221/0.01517, allocations: 494.7 kB / 289.8 MB, free: 4.484 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001061/0.01528, allocations: 100 kB / 289.9 MB, free: 4.387 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006356/0.01591, allocations: 427.3 kB / 290.4 MB, free: 3.969 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.01605, allocations: 255 kB / 290.6 MB, free: 3.719 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000284/0.01634, allocations: 391 kB / 291 MB, free: 3.336 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.01747, allocations: 1.183 MB / 292.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.01747, allocations: 0 / 292.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.01747, allocations: 0 / 292.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.01748, allocations: 0 / 292.2 MB, free: 2.148 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.003297/0.02078, allocations: 2.103 MB / 294.3 MB, free: 4 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.02081, allocations: 12.08 kB / 294.3 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001947/0.02276, allocations: 0.7061 MB / 295 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.02293, allocations: 255.1 kB / 295.2 MB, free: 15.01 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.663e-05/0.023, allocations: 98.95 kB / 295.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.02314, allocations: 124.4 kB / 295.5 MB, free: 14.79 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.02416, allocations: 0.9567 MB / 296.4 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.142e-05/0.02419, allocations: 8.078 kB / 296.4 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.14e-05/0.02426, allocations: 52.38 kB / 296.5 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/0.02428, allocations: 31.94 kB / 296.5 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007985/0.02508, allocations: 0.5116 MB / 297 MB, free: 13.17 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003765/0.02884, allocations: 3.273 MB / 300.3 MB, free: 9.781 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009041/0.02975, allocations: 0.9018 MB / 301.2 MB, free: 8.895 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002682/0.03001, allocations: 265.8 kB / 301.5 MB, free: 8.637 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.001e-05/0.03009, allocations: 44.97 kB / 301.5 MB, free: 8.59 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.03012, allocations: 46.39 kB / 301.5 MB, free: 8.535 MB / 282.7 MB Notification: Performance of pre-optimization done (n=122): time 2.094e-06/0.03012, allocations: 0 / 301.5 MB, free: 8.535 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.003029/0.03315, allocations: 2.106 MB / 303.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.03318, allocations: 90.11 kB / 303.7 MB, free: 6.281 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.03341, allocations: 426.1 kB / 304.2 MB, free: 5.852 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/0.03346, allocations: 45.7 kB / 304.2 MB, free: 5.801 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.03366, allocations: 0.5032 MB / 304.7 MB, free: 5.289 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/0.03386, allocations: 456.1 kB / 305.1 MB, free: 4.84 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002211/0.03409, allocations: 249.1 kB / 305.4 MB, free: 4.59 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.03423, allocations: 0.5624 MB / 306 MB, free: 4.016 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.03443, allocations: 163.8 kB / 306.1 MB, free: 3.855 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003766/0.03481, allocations: 0.5515 MB / 306.7 MB, free: 3.164 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009066/0.03571, allocations: 0.7721 MB / 307.4 MB, free: 2.262 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.03572, allocations: 7.984 kB / 307.4 MB, free: 2.254 MB / 282.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.001036/0.03676, allocations: 0.9762 MB / 308.4 MB, free: 1.262 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.03677, allocations: 8 kB / 308.4 MB, free: 1.254 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.03678, allocations: 8 kB / 308.4 MB, free: 1.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005426/0.03732, allocations: 258.5 kB / 308.7 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005834/0.03791, allocations: 275.5 kB / 309 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002628/0.04054, allocations: 4.745 MB / 313.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.0409, allocations: 64 kB / 313.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/0.04095, allocations: 40.03 kB / 313.8 MB, free: 11.64 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.0002106/0.04116, allocations: 236.2 kB / 314 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.04128, allocations: 115.5 kB / 314.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.04254, allocations: 0.8563 MB / 315 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.04255, allocations: 12 kB / 315 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.04255, allocations: 4 kB / 315 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.04256, allocations: 3.984 kB / 315 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/0.04432, allocations: 1.651 MB / 316.7 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.04432, allocations: 0 / 316.7 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004454/0.04477, allocations: 195.8 kB / 316.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004766/0.04524, allocations: 231.1 kB / 317.1 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.572e-05/0.04529, allocations: 27.98 kB / 317.1 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.04765, allocations: 4.615 MB / 321.7 MB, free: 3.402 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.04766, allocations: 4.062 kB / 321.7 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.04879, allocations: 1.128 MB / 322.9 MB, free: 2.223 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.04898, allocations: 147.5 kB / 323 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.752e-05/0.04903, allocations: 27.88 kB / 323 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.04929, allocations: 48 kB / 323.1 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.04941, allocations: 96.81 kB / 323.2 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.501e-05/0.04945, allocations: 28.09 kB / 323.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001343/0.04958, allocations: 259 kB / 323.5 MB, free: 1.629 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04958, allocations: 0 / 323.5 MB, free: 1.629 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006839/0.05027, allocations: 308 kB / 323.8 MB, free: 1.328 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.0002207/0.05049, allocations: 179 kB / 323.9 MB, free: 1.145 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009647/0.05145, allocations: 1.084 MB / 325 MB, free: 28 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.05145, allocations: 0 / 325 MB, free: 28 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005412/0.05199, allocations: 0.753 MB / 325.8 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.05232, allocations: 88.62 kB / 325.9 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.05457, allocations: 1.716 MB / 327.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001382/0.05471, allocations: 191.8 kB / 327.8 MB, free: 13.16 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003428/0.05505, allocations: 142.7 kB / 327.9 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002816/0.05533, allocations: 194.2 kB / 328.1 MB, free: 12.83 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.05533, allocations: 4 kB / 328.1 MB, free: 12.82 MB / 314.7 MB Notification: Performance of Templates: time 0.01403/0.06937, allocations: 11.59 MB / 339.7 MB, free: 1.375 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8529322468675673]