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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001143/0.001143, allocations: 187 kB / 18.66 MB, free: 4.418 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.258/1.258, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001184/0.001184, allocations: 43.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07861/0.0798, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.1627/0.2425, allocations: 5.211 MB / 379.9 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002558/0.2451, allocations: 1.72 MB / 381.6 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002747/0.2455, allocations: 17.59 kB / 381.6 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002678/0.2481, allocations: 1.412 MB / 383 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007034/0.2489, allocations: 320.8 kB / 383.3 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.2504, allocations: 0.8008 MB / 384.1 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008233/0.2513, allocations: 0.8132 MB / 384.9 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009412/0.2522, allocations: 0.7639 MB / 385.7 MB, free: 8.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004162/0.2527, allocations: 350.2 kB / 386 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004684/0.2531, allocations: 476.2 kB / 386.5 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.602e-05/0.2532, allocations: 76.33 kB / 386.6 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005456/0.2538, allocations: 258.3 kB / 386.8 MB, free: 7.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.2539, allocations: 180.7 kB / 387 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003216/0.2542, allocations: 425.9 kB / 387.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.2554, allocations: 1.183 MB / 388.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2554, allocations: 0 / 388.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2555, allocations: 0 / 388.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.2555, allocations: 4.594 kB / 388.6 MB, free: 6.781 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.003709/0.2592, allocations: 1.444 MB / 390.1 MB, free: 5.965 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.2592, allocations: 9.625 kB / 390.1 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001428/0.2594, allocations: 151 kB / 390.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001638/0.261, allocations: 258.8 kB / 390.5 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.2612, allocations: 260.1 kB / 390.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.179e-05/0.2613, allocations: 72.47 kB / 390.8 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.2614, allocations: 98.73 kB / 390.9 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.2628, allocations: 0.9433 MB / 391.8 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/0.2628, allocations: 5.25 kB / 391.8 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.46e-05/0.2629, allocations: 40.94 kB / 391.9 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.2629, allocations: 24.03 kB / 391.9 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.2642, allocations: 0.7801 MB / 392.7 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004499/0.2687, allocations: 3.356 MB / 396 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/0.2704, allocations: 1.258 MB / 397.3 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000459/0.2709, allocations: 374.6 kB / 397.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.323e-05/0.271, allocations: 103.3 kB / 397.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.271, allocations: 48.17 kB / 397.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 2.114e-06/0.271, allocations: 0 / 397.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=87): time 0.001904/0.2729, allocations: 1.297 MB / 399.1 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.722e-05/0.273, allocations: 90.91 kB / 399.2 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003703/0.2733, allocations: 370 kB / 399.6 MB, free: 420 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.2734, allocations: 40.45 kB / 399.6 MB, free: 376 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.2735, allocations: 376.3 kB / 400 MB, free: 68 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002327/0.2738, allocations: 309 kB / 400.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000256/0.274, allocations: 169.7 kB / 400.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.2742, allocations: 362.2 kB / 400.8 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00045/0.2747, allocations: 267.3 kB / 401 MB, free: 15.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005723/0.2752, allocations: 475.3 kB / 401.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.2763, allocations: 0.7721 MB / 402.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.2763, allocations: 1.156 kB / 402.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001609/0.2779, allocations: 0.9741 MB / 403.3 MB, free: 14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.2779, allocations: 7.406 kB / 403.3 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.278, allocations: 5.719 kB / 403.3 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003818/0.2784, allocations: 125.1 kB / 403.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007785/0.2791, allocations: 198.5 kB / 403.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004188/0.2833, allocations: 6.136 MB / 409.7 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006677/0.284, allocations: 100.4 kB / 409.8 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.446e-05/0.2841, allocations: 39.69 kB / 409.9 MB, free: 7.73 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.0003391/0.2845, allocations: 233.6 kB / 410.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.2846, allocations: 57.84 kB / 410.1 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001443/0.286, allocations: 0.8426 MB / 411 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/0.2861, allocations: 9.047 kB / 411 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/0.2861, allocations: 6.531 kB / 411 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-06/0.2861, allocations: 4.781 kB / 411 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002771/0.2889, allocations: 1.933 MB / 412.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.2889, allocations: 2.594 kB / 412.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005843/0.2895, allocations: 138.2 kB / 413.1 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002815/0.2898, allocations: 107.9 kB / 413.2 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.211e-05/0.2898, allocations: 14.91 kB / 413.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003666/0.2935, allocations: 5.707 MB / 418.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.2935, allocations: 3.344 kB / 418.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001721/0.2952, allocations: 1.281 MB / 420.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001611/0.2954, allocations: 142.4 kB / 420.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.64e-05/0.2955, allocations: 21.91 kB / 420.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003869/0.2959, allocations: 23.31 kB / 420.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.965e-05/0.296, allocations: 64.11 kB / 420.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.765e-05/0.296, allocations: 26.38 kB / 420.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000271/0.2963, allocations: 257.5 kB / 420.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2963, allocations: 1.344 kB / 420.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001008/0.2973, allocations: 263.1 kB / 421 MB, free: 14.36 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.002142/0.2995, allocations: 1.864 MB / 422.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.3011, allocations: 1.171 MB / 424 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3011, allocations: 0 / 424 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008213/0.3019, allocations: 0.7964 MB / 424.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.3025, allocations: 61.08 kB / 424.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007304/0.3098, allocations: 5.686 MB / 430.5 MB, free: 5.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005106/0.3104, allocations: 0.9071 MB / 431.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004386/0.3108, allocations: 109.1 kB / 431.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003254/0.3112, allocations: 239.4 kB / 431.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3112, allocations: 0 / 431.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04328/0.3545, allocations: 12.95 MB / 444.7 MB, free: 7.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.41, allocations: 15.91 kB / 444.8 MB, free: 7.227 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > 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