Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009082/0.0009082, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 143.3 kB / 24.97 MB, free: 8.816 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9865/0.9865, allocations: 173.3 MB / 201.5 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quarterCylinder1.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quarterCylinder1.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.338e-05/1.463e-05, allocations: 2.312 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.004331/0.004345, allocations: 5.176 MB / 273.3 MB, free: 1.523 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002193/0.006538, allocations: 1.65 MB / 274.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002386/0.006777, allocations: 16 kB / 274.9 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001846/0.008623, allocations: 1.497 MB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005156/0.009139, allocations: 333.4 kB / 276.8 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008685/0.01001, allocations: 0.7746 MB / 277.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005844/0.01059, allocations: 0.8477 MB / 278.4 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006824/0.01127, allocations: 0.6636 MB / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003789/0.01165, allocations: 0.5222 MB / 279.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003105/0.01196, allocations: 359 kB / 279.9 MB, free: 10.83 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.848e-05/0.01203, allocations: 76 kB / 280 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003541/0.01239, allocations: 239.6 kB / 280.2 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.847e-05/0.01247, allocations: 191.3 kB / 280.4 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.01265, allocations: 283.3 kB / 280.7 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006667/0.01332, allocations: 0.8056 MB / 281.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.01332, allocations: 0 / 281.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.01332, allocations: 0 / 281.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.01333, allocations: 0 / 281.5 MB, free: 9.246 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002275/0.0156, allocations: 1.502 MB / 283 MB, free: 7.707 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.01564, allocations: 12.86 kB / 283 MB, free: 7.695 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001406/0.01704, allocations: 431.6 kB / 283.4 MB, free: 7.273 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.01719, allocations: 215.5 kB / 283.6 MB, free: 7.035 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.263e-05/0.01723, allocations: 70.38 kB / 283.7 MB, free: 6.965 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.597e-05/0.01733, allocations: 100.4 kB / 283.8 MB, free: 6.867 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008276/0.01816, allocations: 0.7409 MB / 284.5 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.01818, allocations: 8.141 kB / 284.5 MB, free: 6.105 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.359e-05/0.01823, allocations: 40.38 kB / 284.6 MB, free: 6.066 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.01825, allocations: 27.94 kB / 284.6 MB, free: 6.039 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006247/0.01888, allocations: 451.4 kB / 285.1 MB, free: 5.598 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002784/0.02166, allocations: 2.652 MB / 287.7 MB, free: 2.836 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009928/0.02265, allocations: 0.7795 MB / 288.5 MB, free: 2.031 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002886/0.02294, allocations: 237.6 kB / 288.7 MB, free: 1.797 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.686e-05/0.023, allocations: 28.98 kB / 288.7 MB, free: 1.766 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.02303, allocations: 46.39 kB / 288.8 MB, free: 1.711 MB / 266.7 MB Notification: Performance of pre-optimization done (n=87): time 2.555e-06/0.02303, allocations: 0 / 288.8 MB, free: 1.711 MB / 266.7 MB Notification: Performance of matching and sorting (n=87): time 0.001133/0.02416, allocations: 0.7682 MB / 289.6 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.0242, allocations: 94.05 kB / 289.7 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/0.02445, allocations: 374 kB / 290 MB, free: 440 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.02448, allocations: 37.7 kB / 290.1 MB, free: 396 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1089/0.1334, allocations: 442.2 kB / 290.5 MB, free: 23.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002721/0.1336, allocations: 319.7 kB / 290.8 MB, free: 23.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002099/0.1339, allocations: 189.4 kB / 291 MB, free: 23.04 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.847e-05/0.1339, allocations: 0.5334 MB / 291.5 MB, free: 22.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/0.1342, allocations: 154.4 kB / 291.7 MB, free: 22.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003489/0.1346, allocations: 440.2 kB / 292.1 MB, free: 22.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006316/0.1352, allocations: 0.6399 MB / 292.7 MB, free: 21.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.1352, allocations: 2.281 kB / 292.7 MB, free: 21.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001019/0.1362, allocations: 0.8115 MB / 293.6 MB, free: 21.8 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.1362, allocations: 7.766 kB / 293.6 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.1362, allocations: 5.906 kB / 293.6 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004336/0.1367, allocations: 153.2 kB / 293.7 MB, free: 21.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004611/0.1371, allocations: 205.6 kB / 293.9 MB, free: 21.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002174/0.1393, allocations: 7.637 MB / 301.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.1396, allocations: 95.33 kB / 301.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-05/0.1397, allocations: 41.11 kB / 301.7 MB, free: 14.36 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00017/0.1398, allocations: 220.7 kB / 301.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.028e-05/0.1399, allocations: 76.36 kB / 302 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008571/0.1408, allocations: 0.684 MB / 302.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.1408, allocations: 12.38 kB / 302.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.1408, allocations: 6.406 kB / 302.7 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.1408, allocations: 5.547 kB / 302.7 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.1424, allocations: 1.416 MB / 304.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.1424, allocations: 4.625 kB / 304.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/0.1427, allocations: 141 kB / 304.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003316/0.1431, allocations: 145.9 kB / 304.4 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.1431, allocations: 20.48 kB / 304.4 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001678/0.1448, allocations: 7.08 MB / 311.5 MB, free: 6.594 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1448, allocations: 1.938 kB / 311.5 MB, free: 6.594 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.1458, allocations: 1.078 MB / 312.6 MB, free: 6.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.665e-05/0.1459, allocations: 64.02 kB / 312.6 MB, free: 6.043 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.502e-05/0.1459, allocations: 20.34 kB / 312.6 MB, free: 6.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/0.1461, allocations: 26.25 kB / 312.7 MB, free: 6.039 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.1462, allocations: 70.36 kB / 312.7 MB, free: 6.031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.042e-05/0.1462, allocations: 26.56 kB / 312.8 MB, free: 6.031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000163/0.1464, allocations: 233.1 kB / 313 MB, free: 5.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1464, allocations: 1.094 kB / 313 MB, free: 5.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006997/0.1471, allocations: 265.2 kB / 313.3 MB, free: 5.891 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 1 (constantSource.port_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 (78): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002296/0.1473, allocations: 160.7 kB / 313.4 MB, free: 5.801 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009852/0.1483, allocations: 1.214 MB / 314.6 MB, free: 5.082 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1483, allocations: 2.812 kB / 314.6 MB, free: 5.082 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004968/0.1488, allocations: 0.9408 MB / 315.6 MB, free: 4.375 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/0.1492, allocations: 57.58 kB / 315.6 MB, free: 4.348 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.151, allocations: 1.343 MB / 317 MB, free: 3.559 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.1511, allocations: 157.2 kB / 317.1 MB, free: 3.477 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002576/0.1514, allocations: 101.6 kB / 317.2 MB, free: 3.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.1515, allocations: 53.53 kB / 317.3 MB, free: 3.418 MB / 266.7 MB Notification: Performance of SimCode: time 7.82e-07/0.1515, allocations: 0 / 317.3 MB, free: 3.418 MB / 266.7 MB Notification: Performance of Templates: time 0.009/0.1605, allocations: 6.854 MB / 324.1 MB, free: 1.012 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.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.025413522962481]