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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009987/0.0009987, allocations: 96.22 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 198.5 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002377/0.0002379, allocations: 8 kB / 307.1 MB, free: 1.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08818/0.08844, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.004713/0.09319, allocations: 4.472 MB / 363.1 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.09543, allocations: 1.562 MB / 364.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.09562, allocations: 23.94 kB / 364.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004112/0.09604, allocations: 187 kB / 364.9 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005142/0.09657, allocations: 270.3 kB / 365.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.0976, allocations: 0.5296 MB / 365.7 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007028/0.09831, allocations: 0.7464 MB / 366.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002266/0.1006, allocations: 1.36 MB / 367.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002869/0.1009, allocations: 274.9 kB / 368 MB, free: 4.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004068/0.1013, allocations: 390.4 kB / 368.4 MB, free: 3.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.959e-05/0.1014, allocations: 36 kB / 368.5 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003786/0.1018, allocations: 215.8 kB / 368.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.1019, allocations: 127.4 kB / 368.8 MB, free: 3.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.102, allocations: 173.3 kB / 369 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007817/0.1028, allocations: 0.9077 MB / 369.9 MB, free: 2.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1028, allocations: 0 / 369.9 MB, free: 2.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1028, allocations: 0 / 369.9 MB, free: 2.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.1028, allocations: 4 kB / 369.9 MB, free: 2.34 MB / 302.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.003405/0.1062, allocations: 1.307 MB / 371.2 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.1063, allocations: 8.031 kB / 371.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001574/0.1078, allocations: 250.8 kB / 371.4 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.1081, allocations: 255 kB / 371.7 MB, free: 448 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.762e-05/0.1081, allocations: 74 kB / 371.8 MB, free: 376 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.1083, allocations: 103.9 kB / 371.9 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1533/0.2615, allocations: 0.9255 MB / 372.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.406e-05/0.2616, allocations: 2 kB / 372.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.067e-05/0.2617, allocations: 41.83 kB / 372.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.528e-05/0.2617, allocations: 23.69 kB / 372.9 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/0.2631, allocations: 0.7694 MB / 373.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004784/0.2679, allocations: 3.64 MB / 377.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.2695, allocations: 1.253 MB / 378.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005017/0.2701, allocations: 374.7 kB / 378.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001386/0.2702, allocations: 183.4 kB / 379.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.2702, allocations: 48.34 kB / 379.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 2.365e-06/0.2702, allocations: 0 / 379.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.001915/0.2722, allocations: 1.294 MB / 380.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.2722, allocations: 87.03 kB / 380.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000382/0.2726, allocations: 367.2 kB / 380.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.2726, allocations: 41.05 kB / 380.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.2728, allocations: 377.7 kB / 381.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.273, allocations: 300.7 kB / 381.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.962e-05/0.273, allocations: 20.47 kB / 381.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.378e-05/0.2731, allocations: 366.2 kB / 381.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004339/0.2735, allocations: 259.1 kB / 382.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004895/0.274, allocations: 470.5 kB / 382.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005033/0.2746, allocations: 334.3 kB / 383 MB, free: 12.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2746, allocations: 3.469 kB / 383 MB, free: 12.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001454/0.276, allocations: 0.9666 MB / 383.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.2761, allocations: 9.984 kB / 383.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.2761, allocations: 7.188 kB / 384 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003488/0.2764, allocations: 126.6 kB / 384.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007435/0.2772, allocations: 206.9 kB / 384.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002767/0.28, allocations: 5.569 MB / 389.8 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004787/0.2805, allocations: 101.2 kB / 389.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.14e-05/0.2805, allocations: 42.97 kB / 390 MB, free: 6.426 MB / 302.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 (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.0002489/0.2808, allocations: 225.3 kB / 390.2 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.891e-05/0.2809, allocations: 53.47 kB / 390.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001404/0.2823, allocations: 0.8452 MB / 391.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.2823, allocations: 9.266 kB / 391.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2823, allocations: 2.25 kB / 391.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.2823, allocations: 6.891 kB / 391.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/0.2849, allocations: 2.089 MB / 393.2 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.2849, allocations: 3.031 kB / 393.2 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005477/0.2855, allocations: 138.2 kB / 393.4 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002452/0.2857, allocations: 110.7 kB / 393.5 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.132e-05/0.2858, allocations: 22.02 kB / 393.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00256/0.2883, allocations: 5.307 MB / 398.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.2884, allocations: 6.234 kB / 398.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001883/0.2902, allocations: 1.263 MB / 400.1 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.2904, allocations: 144.2 kB / 400.2 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.432e-05/0.2905, allocations: 19.58 kB / 400.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003417/0.2908, allocations: 21.59 kB / 400.2 MB, free: 14.03 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.2909, allocations: 66.3 kB / 400.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/0.291, allocations: 23.91 kB / 400.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002857/0.2913, allocations: 257.1 kB / 400.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2913, allocations: 0 / 400.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009458/0.2922, allocations: 268.5 kB / 400.8 MB, free: 13.79 MB / 318.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 (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.00025/0.2925, allocations: 154.5 kB / 401 MB, free: 13.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.2941, allocations: 1.163 MB / 402.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.2941, allocations: 384 / 402.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008559/0.2949, allocations: 0.7947 MB / 402.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006396/0.2956, allocations: 59.55 kB / 403 MB, free: 12.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/0.2981, allocations: 1.708 MB / 404.7 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.2986, allocations: 0.9143 MB / 405.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005272/0.2992, allocations: 106.1 kB / 405.7 MB, free: 10.51 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.2993, allocations: 53.97 kB / 405.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2993, allocations: 1.062 kB / 405.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of Templates: time 0.01334/0.3127, allocations: 6.654 MB / 412.4 MB, free: 6.059 MB / 318.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches