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.001858/0.001858, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001921/0.001921, allocations: 184.2 kB / 23.71 MB, free: 4.695 MB / 14.72 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 1.394/1.394, allocations: 225.6 MB / 252.5 MB, free: 12.98 MB / 206.1 MB
"
[Timeout remaining time 178]
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 0.001549/0.001549, allocations: 47.92 kB / 370.9 MB, free: 9.328 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2445, allocations: 52.19 MB / 423.1 MB, free: 14.67 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.00692/0.2514, allocations: 5.3 MB / 428.4 MB, free: 9.344 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002798/0.2542, allocations: 1.689 MB / 430.1 MB, free: 7.645 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.2544, allocations: 20 kB / 430.1 MB, free: 7.625 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.00312/0.2576, allocations: 1.419 MB / 431.6 MB, free: 6.203 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0005986/0.2582, allocations: 321.6 kB / 431.9 MB, free: 5.887 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001589/0.2597, allocations: 0.8242 MB / 432.7 MB, free: 5.062 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0008669/0.2606, allocations: 0.8167 MB / 433.5 MB, free: 4.242 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0009228/0.2615, allocations: 0.5859 MB / 434.1 MB, free: 3.645 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003862/0.2619, allocations: 366.7 kB / 434.5 MB, free: 3.285 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005445/0.2625, allocations: 470.1 kB / 434.9 MB, free: 2.824 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 9.994e-05/0.2626, allocations: 76 kB / 435 MB, free: 2.75 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0004837/0.263, allocations: 255.8 kB / 435.2 MB, free: 2.5 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.2632, allocations: 179.3 kB / 435.4 MB, free: 2.324 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000393/0.2636, allocations: 429.9 kB / 435.8 MB, free: 1.902 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.00129/0.2649, allocations: 1.2 MB / 437 MB, free: 0.7031 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.2649, allocations: 0 / 437 MB, free: 0.7031 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.232e-06/0.2649, allocations: 0 / 437 MB, free: 0.7031 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 9.138e-06/0.2649, allocations: 4 kB / 437 MB, free: 0.6992 MB / 334.1 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.004054/0.269, allocations: 1.378 MB / 438.4 MB, free: 15.29 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.269, allocations: 16.03 kB / 438.4 MB, free: 15.27 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001681/0.2707, allocations: 256.2 kB / 438.7 MB, free: 15.02 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.2709, allocations: 201.4 kB / 438.9 MB, free: 14.8 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.58e-05/0.271, allocations: 82.31 kB / 439 MB, free: 14.72 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.000154/0.2711, allocations: 104.3 kB / 439.1 MB, free: 14.62 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.2728, allocations: 0.9424 MB / 440 MB, free: 13.66 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.2728, allocations: 4 kB / 440 MB, free: 13.66 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.578e-05/0.2729, allocations: 40 kB / 440.1 MB, free: 13.62 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.2729, allocations: 28 kB / 440.1 MB, free: 13.59 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/0.2743, allocations: 0.7808 MB / 440.9 MB, free: 12.81 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005212/0.2795, allocations: 3.037 MB / 443.9 MB, free: 9.652 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001903/0.2814, allocations: 0.8693 MB / 444.8 MB, free: 8.77 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005389/0.282, allocations: 329.1 kB / 445.1 MB, free: 8.445 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 8.602e-05/0.2821, allocations: 28.97 kB / 445.1 MB, free: 8.414 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.2821, allocations: 47.55 kB / 445.2 MB, free: 8.359 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=87): time 1.994e-06/0.2821, allocations: 0 / 445.2 MB, free: 8.359 MB / 350.1 MB
Notification: Performance of matching and sorting (n=87): time 0.00218/0.2843, allocations: 1 MB / 446.2 MB, free: 7.348 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/0.2843, allocations: 86.11 kB / 446.2 MB, free: 7.242 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004383/0.2848, allocations: 368.4 kB / 446.6 MB, free: 6.879 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.179e-05/0.2848, allocations: 45.69 kB / 446.7 MB, free: 6.828 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002612/0.2851, allocations: 384.2 kB / 447 MB, free: 6.445 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002541/0.2853, allocations: 321.3 kB / 447.3 MB, free: 6.129 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/0.2856, allocations: 170.9 kB / 447.5 MB, free: 5.957 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001768/0.2858, allocations: 358.8 kB / 447.9 MB, free: 5.598 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004881/0.2863, allocations: 266.5 kB / 448.1 MB, free: 5.336 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006737/0.2869, allocations: 483.4 kB / 448.6 MB, free: 4.789 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.2881, allocations: 0.7666 MB / 449.4 MB, free: 3.941 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2881, allocations: 4 kB / 449.4 MB, free: 3.938 MB / 350.1 MB
Notification: Performance of matching and sorting (n=130) (initialization): time 0.001774/0.2899, allocations: 0.9729 MB / 450.3 MB, free: 2.949 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.2899, allocations: 8 kB / 450.3 MB, free: 2.941 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.2899, allocations: 4 kB / 450.3 MB, free: 2.938 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004111/0.2903, allocations: 127.6 kB / 450.5 MB, free: 2.801 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00085/0.2912, allocations: 203.7 kB / 450.7 MB, free: 2.602 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004987/0.2962, allocations: 5.709 MB / 456.4 MB, free: 12.43 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006246/0.2968, allocations: 107.2 kB / 456.5 MB, free: 12.33 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.915e-05/0.2969, allocations: 39.98 kB / 456.5 MB, free: 12.29 MB / 366.1 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.000344/0.2972, allocations: 237.5 kB / 456.8 MB, free: 12.05 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.2973, allocations: 51.67 kB / 456.8 MB, free: 12 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.2989, allocations: 0.8444 MB / 457.7 MB, free: 11.13 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.299, allocations: 8 kB / 457.7 MB, free: 11.12 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.299, allocations: 0 / 457.7 MB, free: 11.12 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.299, allocations: 11.92 kB / 457.7 MB, free: 11.11 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.3019, allocations: 1.755 MB / 459.4 MB, free: 9.266 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3019, allocations: 4.281 kB / 459.4 MB, free: 9.262 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000629/0.3026, allocations: 135.8 kB / 459.6 MB, free: 9.129 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.000299/0.3029, allocations: 111.2 kB / 459.7 MB, free: 9.008 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.604e-05/0.3029, allocations: 20 kB / 459.7 MB, free: 8.988 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004268/0.3072, allocations: 5.291 MB / 465 MB, free: 3.238 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.3072, allocations: 8.125 kB / 465 MB, free: 3.23 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/0.3091, allocations: 1.281 MB / 466.3 MB, free: 1.891 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.3092, allocations: 67.5 kB / 466.3 MB, free: 1.824 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.728e-05/0.3093, allocations: 31.92 kB / 466.4 MB, free: 1.793 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.3097, allocations: 16 kB / 466.4 MB, free: 1.777 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.3099, allocations: 64.55 kB / 466.4 MB, free: 1.715 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.367e-05/0.3099, allocations: 28.05 kB / 466.5 MB, free: 1.688 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0002986/0.3102, allocations: 255.2 kB / 466.7 MB, free: 1.441 MB / 366.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3102, allocations: 0 / 466.7 MB, free: 1.441 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0009369/0.3111, allocations: 259.5 kB / 467 MB, free: 1.188 MB / 366.1 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.0002733/0.3114, allocations: 163 kB / 467.1 MB, free: 1.016 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001718/0.3131, allocations: 1.121 MB / 468.3 MB, free: 15.84 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3131, allocations: 1.438 kB / 468.3 MB, free: 15.84 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0009408/0.3141, allocations: 0.7644 MB / 469 MB, free: 15.03 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.3146, allocations: 61.36 kB / 469.1 MB, free: 14.96 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.3172, allocations: 1.424 MB / 470.5 MB, free: 13.48 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005601/0.3177, allocations: 0.9071 MB / 471.4 MB, free: 12.54 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0004443/0.3182, allocations: 113.1 kB / 471.5 MB, free: 12.43 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.3183, allocations: 43.44 kB / 471.6 MB, free: 12.39 MB / 382.1 MB
Notification: Performance of SimCode: time 3.91e-07/0.3183, allocations: 4 kB / 471.6 MB, free: 12.39 MB / 382.1 MB
Notification: Performance of Templates: time 0.01535/0.3337, allocations: 7.861 MB / 479.4 MB, free: 4.559 MB / 382.1 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=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.767050632275641]