Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00187/0.00187, allocations: 196.7 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008949/0.0008949, allocations: 87.58 kB / 292.1 MB, free: 5.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.881e-05/2.903e-05, allocations: 0 / 350.6 MB, free: 2.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.099/0.09905, allocations: 51.48 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2975/0.3966, allocations: 83.83 MB / 485.9 MB, free: 5.684 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.3968, allocations: 86.56 kB / 485.9 MB, free: 5.637 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05924/0.4561, allocations: 27.58 MB / 0.5015 GB, free: 11.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.4561, allocations: 5.031 kB / 0.5015 GB, free: 11.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.734e-05/0.4561, allocations: 16 kB / 0.5015 GB, free: 11.46 MB / 378.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.002637/0.4588, allocations: 1.087 MB / 0.5026 GB, free: 10.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.4588, allocations: 8.031 kB / 0.5026 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001501/0.4603, allocations: 254.8 kB / 0.5028 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/0.4605, allocations: 250.9 kB / 0.5031 GB, free: 9.797 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.432e-05/0.4606, allocations: 74 kB / 0.5031 GB, free: 9.727 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.4607, allocations: 103.5 kB / 0.5032 GB, free: 9.629 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.4622, allocations: 0.9111 MB / 0.5041 GB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.4622, allocations: 4 kB / 0.5041 GB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-05/0.4623, allocations: 43.98 kB / 0.5042 GB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.4623, allocations: 24.56 kB / 0.5042 GB, free: 8.633 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.4635, allocations: 0.7538 MB / 0.5049 GB, free: 7.879 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004823/0.4684, allocations: 3.659 MB / 0.5085 GB, free: 3.984 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.4703, allocations: 1.412 MB / 0.5099 GB, free: 2.449 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005452/0.4708, allocations: 357.2 kB / 0.5102 GB, free: 2.098 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001614/0.471, allocations: 191 kB / 0.5104 GB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.471, allocations: 47.91 kB / 0.5104 GB, free: 1.816 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 2.505e-06/0.4711, allocations: 0 / 0.5104 GB, free: 1.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.001187/0.4722, allocations: 0.6747 MB / 0.5111 GB, free: 1.125 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.4723, allocations: 93.86 kB / 0.5112 GB, free: 1.016 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003361/0.4726, allocations: 326.8 kB / 0.5115 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.14e-05/0.4727, allocations: 37.7 kB / 0.5115 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.4729, allocations: 388.5 kB / 0.5119 GB, free: 264 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.4731, allocations: 291.9 kB / 0.5122 GB, free: 15.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.98e-05/0.4731, allocations: 20 kB / 0.5122 GB, free: 15.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.4733, allocations: 362.8 kB / 0.5126 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004204/0.4737, allocations: 254.5 kB / 0.5128 GB, free: 15.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005598/0.4743, allocations: 460.4 kB / 0.5132 GB, free: 14.81 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000532/0.4748, allocations: 336.8 kB / 0.5136 GB, free: 14.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.4748, allocations: 0 / 0.5136 GB, free: 14.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001462/0.4763, allocations: 0.945 MB / 0.5145 GB, free: 13.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.4763, allocations: 13.36 kB / 0.5145 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.4763, allocations: 8 kB / 0.5145 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003503/0.4767, allocations: 123.8 kB / 0.5146 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007504/0.4775, allocations: 207.7 kB / 0.5148 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0036/0.4811, allocations: 5.555 MB / 0.5202 GB, free: 7.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005778/0.4817, allocations: 103 kB / 0.5203 GB, free: 6.969 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.264e-05/0.4817, allocations: 43.98 kB / 0.5204 GB, free: 6.926 MB / 394.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001586/0.4819, allocations: 160.7 kB / 0.5205 GB, free: 6.762 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.482, allocations: 51.34 kB / 0.5206 GB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001464/0.4835, allocations: 0.8312 MB / 0.5214 GB, free: 5.863 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4835, allocations: 8.844 kB / 0.5214 GB, free: 5.855 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4835, allocations: 4 kB / 0.5214 GB, free: 5.852 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.4835, allocations: 3.984 kB / 0.5214 GB, free: 5.848 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004/0.4875, allocations: 3.304 MB / 0.5246 GB, free: 2.117 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.4876, allocations: 8 kB / 0.5246 GB, free: 2.109 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005285/0.4881, allocations: 139.8 kB / 0.5248 GB, free: 1.973 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002834/0.4884, allocations: 111.9 kB / 0.5249 GB, free: 1.852 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.147e-05/0.4885, allocations: 28 kB / 0.5249 GB, free: 1.824 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003465/0.4919, allocations: 5.307 MB / 0.5301 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.25e-05/0.492, allocations: 13.62 kB / 0.5301 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.494, allocations: 1.734 MB / 0.5318 GB, free: 9.922 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001864/0.4942, allocations: 164.2 kB / 0.532 GB, free: 9.742 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.206e-05/0.4942, allocations: 24 kB / 0.532 GB, free: 9.719 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004361/0.4947, allocations: 31.89 kB / 0.532 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.4948, allocations: 92.14 kB / 0.5321 GB, free: 9.598 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-05/0.4948, allocations: 28 kB / 0.5321 GB, free: 9.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003079/0.4952, allocations: 278.2 kB / 0.5324 GB, free: 9.297 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4952, allocations: 0 / 0.5324 GB, free: 9.297 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009551/0.4961, allocations: 263.5 kB / 0.5326 GB, free: 9.039 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 1 (referenceSensor.port.reference.gamma) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002876/0.4964, allocations: 182.9 kB / 0.5328 GB, free: 8.852 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001626/0.4981, allocations: 1.135 MB / 0.5339 GB, free: 7.668 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4981, allocations: 0 / 0.5339 GB, free: 7.668 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008707/0.499, allocations: 0.78 MB / 0.5347 GB, free: 6.832 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000399/0.4994, allocations: 66.69 kB / 0.5347 GB, free: 6.773 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00201/0.5014, allocations: 1.175 MB / 0.5359 GB, free: 5.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004674/0.5019, allocations: 0.928 MB / 0.5368 GB, free: 4.523 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005426/0.5024, allocations: 113.7 kB / 0.5369 GB, free: 4.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.5026, allocations: 59.42 kB / 0.537 GB, free: 4.352 MB / 410.7 MB Notification: Performance of SimCode: time 8.62e-07/0.5026, allocations: 0 / 0.537 GB, free: 4.352 MB / 410.7 MB Notification: Performance of Templates: time 0.01248/0.5151, allocations: 7.21 MB / 0.544 GB, free: 13.27 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches