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.0006998/0.0006998, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009525/0.001652, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.000691/0.000691, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008295/0.00152, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9969/0.9969, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07618/1.073, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.372e-06/1.372e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.605e-05/1.742e-05, allocations: 6.25 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005238/0.005255, allocations: 6.525 MB / 251.1 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00338/0.008635, allocations: 2.49 MB / 253.5 MB, free: 5.258 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004654/0.0091, allocations: 24 kB / 253.6 MB, free: 5.234 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001937/0.01104, allocations: 1.983 MB / 255.6 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009988/0.01204, allocations: 0.5508 MB / 256.1 MB, free: 2.688 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001393/0.01343, allocations: 1.269 MB / 257.4 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009627/0.01439, allocations: 1.16 MB / 258.5 MB, free: 252 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008978/0.01529, allocations: 0.8177 MB / 259.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006364/0.01593, allocations: 0.737 MB / 260.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004437/0.01637, allocations: 494.6 kB / 260.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.01649, allocations: 104 kB / 260.7 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007406/0.01723, allocations: 443.3 kB / 261.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.01733, allocations: 183.3 kB / 261.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.01756, allocations: 319.3 kB / 261.6 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001027/0.01859, allocations: 1.082 MB / 262.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.499e-05/0.0186, allocations: 0 / 262.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.001e-06/0.0186, allocations: 0 / 262.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.922e-05/0.01863, allocations: 4 kB / 262.7 MB, free: 12.06 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.003302/0.02194, allocations: 2.369 MB / 265 MB, free: 9.645 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.02197, allocations: 15.97 kB / 265.1 MB, free: 9.629 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001782/0.02375, allocations: 0.7457 MB / 265.8 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.02397, allocations: 248.1 kB / 266.1 MB, free: 8.613 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.703e-05/0.02404, allocations: 98.95 kB / 266.1 MB, free: 8.516 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.02417, allocations: 128.4 kB / 266.3 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009147/0.02509, allocations: 0.9308 MB / 267.2 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.041e-05/0.02512, allocations: 4.141 kB / 267.2 MB, free: 7.414 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.004e-05/0.02518, allocations: 52.38 kB / 267.3 MB, free: 7.363 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.0252, allocations: 39.94 kB / 267.3 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005508/0.02575, allocations: 436 kB / 267.7 MB, free: 6.883 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003203/0.02895, allocations: 2.661 MB / 270.4 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007993/0.02975, allocations: 0.8017 MB / 271.2 MB, free: 3.301 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.02998, allocations: 219.7 kB / 271.4 MB, free: 3.086 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.24e-05/0.03007, allocations: 44.97 kB / 271.4 MB, free: 3.043 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.0301, allocations: 43.56 kB / 271.5 MB, free: 2.992 MB / 266.7 MB Notification: Performance of pre-optimization done (n=122): time 3.527e-06/0.0301, allocations: 4 kB / 271.5 MB, free: 2.988 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.001894/0.032, allocations: 1.249 MB / 272.7 MB, free: 1.727 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.139e-05/0.03203, allocations: 72.28 kB / 272.8 MB, free: 1.645 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.03223, allocations: 347 kB / 273.2 MB, free: 1.293 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.825e-05/0.03227, allocations: 49.7 kB / 273.2 MB, free: 1.238 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.03243, allocations: 456.4 kB / 273.6 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.03262, allocations: 432.2 kB / 274.1 MB, free: 368 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.0328, allocations: 231.4 kB / 274.3 MB, free: 128 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.1019/0.1347, allocations: 374.6 kB / 274.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003625/0.1351, allocations: 132.2 kB / 274.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000267/0.1353, allocations: 430.6 kB / 275.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005798/0.1359, allocations: 0.6371 MB / 275.8 MB, free: 12.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.657e-06/0.1359, allocations: 2.625 kB / 275.8 MB, free: 12.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.0009959/0.1369, allocations: 0.7484 MB / 276.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.137, allocations: 9.375 kB / 276.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.137, allocations: 6.406 kB / 276.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006232/0.1376, allocations: 238 kB / 276.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006646/0.1383, allocations: 300.5 kB / 277.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.1402, allocations: 3.361 MB / 280.5 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004154/0.1406, allocations: 129.2 kB / 280.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.214e-05/0.1407, allocations: 41.91 kB / 280.7 MB, free: 9.621 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.0001921/0.1409, allocations: 179.2 kB / 280.8 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.141, allocations: 87.5 kB / 280.9 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008599/0.1418, allocations: 0.6734 MB / 281.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.1418, allocations: 11.38 kB / 281.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.1419, allocations: 5.828 kB / 281.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.1419, allocations: 5.812 kB / 281.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001645/0.1435, allocations: 1.236 MB / 282.9 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.1435, allocations: 11.88 kB / 282.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004458/0.144, allocations: 208.9 kB / 283.1 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.1441, allocations: 102.5 kB / 283.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004701/0.1446, allocations: 206 kB / 283.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.1446, allocations: 23.97 kB / 283.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/0.1461, allocations: 3.214 MB / 286.6 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.1462, allocations: 3.359 kB / 286.6 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.1472, allocations: 0.8689 MB / 287.5 MB, free: 6.309 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.116e-05/0.1473, allocations: 26.5 kB / 287.5 MB, free: 6.305 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.1475, allocations: 33.33 kB / 287.5 MB, free: 6.305 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.1476, allocations: 90.75 kB / 287.6 MB, free: 6.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.605e-05/0.1476, allocations: 27.31 kB / 287.7 MB, free: 6.297 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001193/0.1478, allocations: 129 kB / 287.8 MB, free: 6.281 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1478, allocations: 0 / 287.8 MB, free: 6.281 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008628/0.1486, allocations: 369.9 kB / 288.1 MB, free: 6.254 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.0002325/0.1489, allocations: 159.4 kB / 288.3 MB, free: 6.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009898/0.1498, allocations: 0.8945 MB / 289.2 MB, free: 5.895 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.717e-05/0.1499, allocations: 16.53 kB / 289.2 MB, free: 5.891 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004558/0.1503, allocations: 0.6082 MB / 289.8 MB, free: 5.621 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.1506, allocations: 135.4 kB / 290 MB, free: 5.621 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007448/0.1581, allocations: 1.817 MB / 291.8 MB, free: 4.867 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/0.1583, allocations: 197.8 kB / 292 MB, free: 4.789 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003827/0.1586, allocations: 136.7 kB / 292.1 MB, free: 4.738 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002249/0.1589, allocations: 161.1 kB / 292.3 MB, free: 4.691 MB / 266.7 MB Notification: Performance of SimCode: time 1.733e-06/0.1589, allocations: 0 / 292.3 MB, free: 4.691 MB / 266.7 MB Notification: Performance of Templates: time 0.01293/0.1718, allocations: 10.87 MB / 303.1 MB, free: 15.18 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 -emit_protected -ignoreHideResult -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.8009439036250114]