Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001464/0.001464, allocations: 106.1 kB / 18.4 MB, free: 4.66 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.00167/0.00167, allocations: 190.4 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 51.94 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/0.08947, allocations: 46.61 MB / 375.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.1876/0.2771, allocations: 5.206 MB / 381 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002975/0.2802, allocations: 1.724 MB / 382.7 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000309/0.2806, allocations: 16.5 kB / 382.8 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002956/0.2835, allocations: 1.411 MB / 384.2 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.2846, allocations: 328.6 kB / 384.5 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001674/0.2862, allocations: 0.7968 MB / 385.3 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00111/0.2874, allocations: 0.818 MB / 386.1 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.2884, allocations: 0.7569 MB / 386.9 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004824/0.2889, allocations: 353.6 kB / 387.2 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004995/0.2895, allocations: 474 kB / 387.7 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.2896, allocations: 74.94 kB / 387.7 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006993/0.2903, allocations: 256.3 kB / 388 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.2904, allocations: 171.4 kB / 388.2 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003646/0.2908, allocations: 430.1 kB / 388.6 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001565/0.2924, allocations: 1.184 MB / 389.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2924, allocations: 0.5625 kB / 389.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.188e-06/0.2924, allocations: 0.9062 kB / 389.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.698e-05/0.2924, allocations: 7.875 kB / 389.8 MB, free: 7.031 MB / 318.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.004017/0.2964, allocations: 1.443 MB / 391.2 MB, free: 6.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.2965, allocations: 9.344 kB / 391.2 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001688/0.2982, allocations: 253.8 kB / 391.5 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.2985, allocations: 259.9 kB / 391.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.54e-05/0.2985, allocations: 78.34 kB / 391.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/0.2987, allocations: 97.56 kB / 391.9 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.3003, allocations: 0.9386 MB / 392.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.685e-05/0.3004, allocations: 7.672 kB / 392.9 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.307e-05/0.3005, allocations: 39.59 kB / 392.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.611e-05/0.3005, allocations: 23.06 kB / 392.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.3018, allocations: 0.7816 MB / 393.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005167/0.307, allocations: 3.355 MB / 397 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0018/0.3088, allocations: 1.267 MB / 398.3 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005011/0.3094, allocations: 379.8 kB / 398.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001119/0.3095, allocations: 101.1 kB / 398.8 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.3095, allocations: 48.88 kB / 398.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 3.256e-06/0.3095, allocations: 0 / 398.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=87): time 0.00204/0.3116, allocations: 1.294 MB / 400.1 MB, free: 1.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.3116, allocations: 92.83 kB / 400.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004576/0.3121, allocations: 364 kB / 400.6 MB, free: 0.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.28e-05/0.3121, allocations: 40.45 kB / 400.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.3123, allocations: 383 kB / 401 MB, free: 364 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.3125, allocations: 305.9 kB / 401.3 MB, free: 116 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002253/0.3127, allocations: 170.2 kB / 401.5 MB, free: 24 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.3129, allocations: 357.9 kB / 401.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004624/0.3134, allocations: 267.1 kB / 402.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006258/0.314, allocations: 476.3 kB / 402.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.3152, allocations: 0.77 MB / 403.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.3152, allocations: 6.438 kB / 403.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001894/0.3171, allocations: 0.9737 MB / 404.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.3171, allocations: 7.469 kB / 404.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.3172, allocations: 6.688 kB / 404.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000447/0.3176, allocations: 124.2 kB / 404.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008115/0.3184, allocations: 207.2 kB / 404.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004494/0.3229, allocations: 6.125 MB / 410.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008846/0.3239, allocations: 102.1 kB / 410.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-05/0.324, allocations: 38.58 kB / 410.9 MB, free: 8.016 MB / 334.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.0004412/0.3244, allocations: 229 kB / 411.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.3245, allocations: 54.16 kB / 411.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.3261, allocations: 0.854 MB / 412 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.3262, allocations: 8.5 kB / 412 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3262, allocations: 2.688 kB / 412 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.3262, allocations: 7.922 kB / 412 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003043/0.3292, allocations: 1.927 MB / 414 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.994e-06/0.3293, allocations: 2.656 kB / 414 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005597/0.3298, allocations: 134.5 kB / 414.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003095/0.3302, allocations: 115.7 kB / 414.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.065e-05/0.3302, allocations: 23.89 kB / 414.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003832/0.3341, allocations: 5.708 MB / 419.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.3341, allocations: 6.531 kB / 419.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/0.3361, allocations: 1.271 MB / 421.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.3363, allocations: 143 kB / 421.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.999e-05/0.3364, allocations: 23.03 kB / 421.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003665/0.3368, allocations: 20.81 kB / 421.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.3369, allocations: 67.72 kB / 421.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-05/0.3369, allocations: 20.97 kB / 421.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002883/0.3372, allocations: 262 kB / 421.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3372, allocations: 0 / 421.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001161/0.3384, allocations: 260.1 kB / 422 MB, free: 14.58 MB / 350.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.0003245/0.3387, allocations: 147.9 kB / 422.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.3406, allocations: 1.173 MB / 423.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.3406, allocations: 0 / 423.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008703/0.3415, allocations: 0.7959 MB / 424.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000605/0.3421, allocations: 63.41 kB / 424.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.3448, allocations: 1.429 MB / 425.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/0.3453, allocations: 0.9149 MB / 426.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.3456, allocations: 59.44 kB / 426.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of SimCode: time 1.522e-06/0.3456, allocations: 0 / 426.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of Templates: time 0.02279/0.3684, allocations: 21.11 MB / 447.7 MB, free: 5.723 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches