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.001425/0.001425, allocations: 108.5 kB / 16.51 MB, free: 6.707 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.001477/0.001477, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.293/1.293, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 46.77 kB / 300 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08685/0.08796, allocations: 49.45 MB / 349.4 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.006002/0.094, allocations: 5.226 MB / 354.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002955/0.09699, allocations: 1.674 MB / 356.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003222/0.09734, allocations: 20 kB / 356.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00268/0.1001, allocations: 1.326 MB / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007015/0.1008, allocations: 274.3 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.1022, allocations: 0.7899 MB / 358.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00066/0.1028, allocations: 0.7663 MB / 359.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009447/0.1038, allocations: 0.7188 MB / 360.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002896/0.1041, allocations: 318.8 kB / 360.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004095/0.1045, allocations: 462.1 kB / 361 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.322e-05/0.1046, allocations: 60 kB / 361 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004511/0.105, allocations: 235.8 kB / 361.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.1052, allocations: 167.3 kB / 361.4 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003258/0.1055, allocations: 413.9 kB / 361.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009704/0.1065, allocations: 1.164 MB / 363 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1065, allocations: 0 / 363 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1065, allocations: 0 / 363 MB, free: 7.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.1065, allocations: 4 kB / 363 MB, free: 7.094 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.003708/0.1102, allocations: 1.436 MB / 364.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1103, allocations: 15.97 kB / 364.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001635/0.1119, allocations: 255.7 kB / 364.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002145/0.1121, allocations: 263.2 kB / 364.9 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.782e-05/0.1122, allocations: 70.38 kB / 365 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.1123, allocations: 100.3 kB / 365.1 MB, free: 4.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.1138, allocations: 0.9464 MB / 366.1 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.1139, allocations: 3.938 kB / 366.1 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.648e-05/0.1139, allocations: 36 kB / 366.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.48e-05/0.114, allocations: 24 kB / 366.1 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.1152, allocations: 0.777 MB / 366.9 MB, free: 3.082 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1567/0.2719, allocations: 3.375 MB / 370.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.2738, allocations: 1.258 MB / 371.5 MB, free: 23.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/0.2743, allocations: 375.9 kB / 371.9 MB, free: 23.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.883e-05/0.2744, allocations: 102 kB / 372 MB, free: 23.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/0.2744, allocations: 46.14 kB / 372 MB, free: 23.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 2.565e-06/0.2745, allocations: 0.75 kB / 372 MB, free: 23.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.002031/0.2765, allocations: 1.304 MB / 373.3 MB, free: 23.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.2765, allocations: 90.16 kB / 373.4 MB, free: 22.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004339/0.277, allocations: 368 kB / 373.8 MB, free: 22.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.277, allocations: 40.42 kB / 373.8 MB, free: 22.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.2772, allocations: 380.1 kB / 374.2 MB, free: 22.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.2773, allocations: 301.3 kB / 374.5 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/0.2776, allocations: 174.2 kB / 374.7 MB, free: 22.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.097e-05/0.2776, allocations: 357.8 kB / 375 MB, free: 21.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004229/0.2781, allocations: 267 kB / 375.3 MB, free: 21.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005372/0.2786, allocations: 478.6 kB / 375.7 MB, free: 21.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009177/0.2795, allocations: 0.7673 MB / 376.5 MB, free: 20.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.2796, allocations: 1.406 kB / 376.5 MB, free: 20.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001548/0.2811, allocations: 0.9807 MB / 377.5 MB, free: 20.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.2811, allocations: 8.734 kB / 377.5 MB, free: 20.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.2812, allocations: 5.781 kB / 377.5 MB, free: 20.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003587/0.2815, allocations: 129.6 kB / 377.6 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007514/0.2823, allocations: 203.9 kB / 377.8 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002718/0.285, allocations: 5.57 MB / 383.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005211/0.2855, allocations: 109 kB / 383.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.034e-05/0.2856, allocations: 39.66 kB / 383.5 MB, free: 14.72 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 (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.0002526/0.2859, allocations: 237 kB / 383.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.286, allocations: 53.52 kB / 383.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001309/0.2873, allocations: 0.8508 MB / 384.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.2873, allocations: 9.812 kB / 384.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.2873, allocations: 2.438 kB / 384.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.2873, allocations: 5.25 kB / 384.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00267/0.29, allocations: 1.926 MB / 386.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.29, allocations: 2.469 kB / 386.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005977/0.2906, allocations: 139.8 kB / 386.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000275/0.2909, allocations: 115.6 kB / 386.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-05/0.291, allocations: 16.61 kB / 386.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002421/0.2934, allocations: 5.296 MB / 392.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.2934, allocations: 3.156 kB / 392.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001715/0.2952, allocations: 1.28 MB / 393.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.2953, allocations: 142.2 kB / 393.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.495e-05/0.2954, allocations: 19.66 kB / 393.6 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003646/0.2957, allocations: 22.47 kB / 393.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.2958, allocations: 71.06 kB / 393.7 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-05/0.2959, allocations: 23.11 kB / 393.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002709/0.2962, allocations: 255.8 kB / 394 MB, free: 6.352 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2962, allocations: 0 / 394 MB, free: 6.352 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009942/0.2972, allocations: 260.2 kB / 394.2 MB, free: 6.289 MB / 302.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.0002628/0.2974, allocations: 149.3 kB / 394.4 MB, free: 6.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.2989, allocations: 1.173 MB / 395.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.299, allocations: 0 / 395.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007183/0.2997, allocations: 0.7979 MB / 396.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005592/0.3003, allocations: 68.61 kB / 396.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002317/0.3026, allocations: 1.771 MB / 398.2 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.3029, allocations: 0.9078 MB / 399.1 MB, free: 2.973 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005196/0.3035, allocations: 105.1 kB / 399.2 MB, free: 2.926 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.3036, allocations: 49.69 kB / 399.3 MB, free: 2.918 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3036, allocations: 0 / 399.3 MB, free: 2.918 MB / 302.1 MB Notification: Performance of Templates: time 0.01144/0.3151, allocations: 6.888 MB / 406.2 MB, free: 15.86 MB / 318.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