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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=2000,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=2000,variableFilter="time|quarterCylinder1.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 112.9 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 196 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009568/0.0009568, allocations: 47.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.247, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.005937/0.253, allocations: 5.254 MB / 406 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002517/0.2555, allocations: 1.678 MB / 407.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002153/0.2558, allocations: 20 kB / 407.7 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002739/0.2585, allocations: 1.41 MB / 409.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006241/0.2592, allocations: 317.6 kB / 409.4 MB, free: 188 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.2606, allocations: 0.8117 MB / 410.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008499/0.2615, allocations: 0.8224 MB / 411 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009359/0.2624, allocations: 0.7653 MB / 411.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003252/0.2627, allocations: 354.7 kB / 412.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004506/0.2632, allocations: 462.2 kB / 412.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.424e-05/0.2633, allocations: 72 kB / 412.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004555/0.2638, allocations: 263.8 kB / 412.9 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.2639, allocations: 179.3 kB / 413.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000299/0.2642, allocations: 421.9 kB / 413.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.2653, allocations: 1.202 MB / 414.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.2653, allocations: 0 / 414.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2653, allocations: 3.938 kB / 414.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.2653, allocations: 4 kB / 414.7 MB, free: 10.82 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.003578/0.2689, allocations: 1.458 MB / 416.2 MB, free: 9.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.269, allocations: 8.031 kB / 416.2 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001626/0.2706, allocations: 260.2 kB / 416.4 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.2708, allocations: 259.3 kB / 416.7 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.35e-05/0.2709, allocations: 74.38 kB / 416.8 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.271, allocations: 104.3 kB / 416.9 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.2724, allocations: 0.9424 MB / 417.8 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/0.2725, allocations: 4 kB / 417.8 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.647e-05/0.2725, allocations: 43.98 kB / 417.9 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.2726, allocations: 24 kB / 417.9 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001219/0.2738, allocations: 0.7814 MB / 418.7 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004514/0.2783, allocations: 3.358 MB / 422 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.2801, allocations: 1.244 MB / 423.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004941/0.2806, allocations: 374 kB / 423.6 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001058/0.2807, allocations: 102.1 kB / 423.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.2807, allocations: 43.56 kB / 423.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=87): time 2.565e-06/0.2808, allocations: 4 kB / 423.8 MB, free: 1.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=87): time 0.002009/0.2828, allocations: 1.304 MB / 425.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.2828, allocations: 90.11 kB / 425.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.2832, allocations: 380.3 kB / 425.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.2833, allocations: 33.7 kB / 425.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.2835, allocations: 396.1 kB / 426 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.2836, allocations: 313.3 kB / 426.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.2839, allocations: 174.9 kB / 426.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2841, allocations: 362.8 kB / 426.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004101/0.2845, allocations: 262.5 kB / 427 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005657/0.285, allocations: 483.3 kB / 427.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009801/0.286, allocations: 0.7706 MB / 428.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.286, allocations: 0 / 428.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001571/0.2876, allocations: 0.9729 MB / 429.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.2877, allocations: 8 kB / 429.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.2877, allocations: 11.94 kB / 429.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003591/0.288, allocations: 123.7 kB / 429.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000773/0.2888, allocations: 207.7 kB / 429.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003915/0.2927, allocations: 6.126 MB / 435.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005498/0.2933, allocations: 99.25 kB / 435.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.843e-05/0.2934, allocations: 40 kB / 435.9 MB, free: 4.379 MB / 350.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.0002953/0.2937, allocations: 233.5 kB / 436.1 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.2938, allocations: 63.78 kB / 436.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.2952, allocations: 0.8443 MB / 437 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.2952, allocations: 8 kB / 437 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.2952, allocations: 4 kB / 437 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.2952, allocations: 11.91 kB / 437 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.2978, allocations: 1.935 MB / 439 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.2978, allocations: 8.031 kB / 439 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005307/0.2984, allocations: 135.8 kB / 439.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002583/0.2986, allocations: 103.4 kB / 439.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.38e-05/0.2987, allocations: 24 kB / 439.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003252/0.3019, allocations: 5.709 MB / 444.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.302, allocations: 7.938 kB / 444.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.3035, allocations: 1.273 MB / 446.2 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.3037, allocations: 148.5 kB / 446.4 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.938e-05/0.3037, allocations: 23.89 kB / 446.4 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003625/0.3041, allocations: 20 kB / 446.4 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.15e-05/0.3042, allocations: 64.58 kB / 446.5 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.02e-05/0.3042, allocations: 31.98 kB / 446.5 MB, free: 8.938 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002471/0.3045, allocations: 251.2 kB / 446.7 MB, free: 8.691 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3045, allocations: 0 / 446.7 MB, free: 8.691 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008284/0.3053, allocations: 263.5 kB / 447 MB, free: 8.434 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.0002204/0.3056, allocations: 151 kB / 447.1 MB, free: 8.277 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.307, allocations: 1.174 MB / 448.3 MB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.307, allocations: 0 / 448.3 MB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007546/0.3078, allocations: 0.7995 MB / 449.1 MB, free: 6.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005151/0.3083, allocations: 70.61 kB / 449.2 MB, free: 6.133 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.3105, allocations: 1.417 MB / 450.6 MB, free: 4.652 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/0.3109, allocations: 0.9109 MB / 451.5 MB, free: 3.715 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004086/0.3113, allocations: 113.1 kB / 451.6 MB, free: 3.605 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.3114, allocations: 51.42 kB / 451.7 MB, free: 3.555 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3114, allocations: 0 / 451.7 MB, free: 3.555 MB / 366.1 MB Notification: Performance of Templates: time 0.01169/0.3231, allocations: 7.235 MB / 458.9 MB, free: 12.35 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.makefile (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) 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) Reference file matches