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.001355/0.001355, allocations: 104.3 kB / 17.58 MB, free: 5.453 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.001612/0.001612, allocations: 192.2 kB / 18.51 MB, free: 4.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.141/2.141, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001784/0.001784, allocations: 55.88 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1492, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.01288/0.1621, allocations: 5.207 MB / 332.6 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004029/0.1662, allocations: 1.717 MB / 334.3 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006554/0.167, allocations: 16 kB / 334.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008235/0.1752, allocations: 1.423 MB / 335.8 MB, free: 11.96 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001465/0.1767, allocations: 305.7 kB / 336.1 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002385/0.1791, allocations: 0.8213 MB / 336.9 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001658/0.1808, allocations: 0.8053 MB / 337.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00579/0.1866, allocations: 0.7655 MB / 338.4 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006417/0.1872, allocations: 350.7 kB / 338.8 MB, free: 8.906 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007909/0.1881, allocations: 466.1 kB / 339.2 MB, free: 8.449 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001945/0.1883, allocations: 72 kB / 339.3 MB, free: 8.379 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008159/0.1891, allocations: 263.8 kB / 339.6 MB, free: 8.121 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.1893, allocations: 179.4 kB / 339.7 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000581/0.1899, allocations: 425.8 kB / 340.2 MB, free: 7.527 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001761/0.1917, allocations: 1.168 MB / 341.3 MB, free: 6.355 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1917, allocations: 0 / 341.3 MB, free: 6.355 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1917, allocations: 0 / 341.3 MB, free: 6.355 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.692e-05/0.1917, allocations: 0 / 341.3 MB, free: 6.355 MB / 286.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.005656/0.1974, allocations: 1.447 MB / 342.8 MB, free: 4.855 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.1975, allocations: 11.97 kB / 342.8 MB, free: 4.844 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002241/0.1977, allocations: 152.4 kB / 342.9 MB, free: 4.688 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006616/0.2043, allocations: 251.7 kB / 343.2 MB, free: 4.441 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.2047, allocations: 259.2 kB / 343.4 MB, free: 4.148 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.481e-05/0.2048, allocations: 74.38 kB / 343.5 MB, free: 4.078 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.205, allocations: 108.3 kB / 343.6 MB, free: 3.973 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002207/0.2073, allocations: 0.9421 MB / 344.6 MB, free: 3.016 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.688e-05/0.2073, allocations: 0 / 344.6 MB, free: 3.016 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.2075, allocations: 40 kB / 344.6 MB, free: 2.977 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.721e-05/0.2075, allocations: 24 kB / 344.6 MB, free: 2.953 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001996/0.2095, allocations: 0.7845 MB / 345.4 MB, free: 2.172 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01115/0.2207, allocations: 3.373 MB / 348.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006732/0.2274, allocations: 1.26 MB / 350 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007669/0.2282, allocations: 373.2 kB / 350.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000155/0.2284, allocations: 102.1 kB / 350.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.2285, allocations: 51.48 kB / 350.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 5.651e-06/0.2285, allocations: 0 / 350.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.01114/0.2396, allocations: 1.3 MB / 351.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.776e-05/0.2397, allocations: 86.11 kB / 351.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006063/0.2403, allocations: 372.2 kB / 352.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.579e-05/0.2404, allocations: 37.7 kB / 352.3 MB, free: 10.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002888/0.2407, allocations: 378.9 kB / 352.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002877/0.241, allocations: 299.7 kB / 353 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003344/0.2414, allocations: 170.8 kB / 353.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.2415, allocations: 374.7 kB / 353.5 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006472/0.2422, allocations: 262.5 kB / 353.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00082/0.243, allocations: 479.4 kB / 354.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.2445, allocations: 0.7705 MB / 355 MB, free: 7.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.959e-06/0.2445, allocations: 4 kB / 355 MB, free: 7.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.006346/0.2509, allocations: 0.969 MB / 356 MB, free: 6.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.2509, allocations: 8 kB / 356 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.251, allocations: 11.98 kB / 356 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005014/0.2515, allocations: 127.3 kB / 356.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.2526, allocations: 207.7 kB / 356.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005689/0.2583, allocations: 6.118 MB / 362.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008578/0.2592, allocations: 102.8 kB / 362.6 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.2593, allocations: 43.98 kB / 362.6 MB, free: 15.76 MB / 318.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.0004833/0.2598, allocations: 233.5 kB / 362.8 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.26, allocations: 55.38 kB / 362.9 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006097/0.2661, allocations: 0.8443 MB / 363.7 MB, free: 14.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.2662, allocations: 11.98 kB / 363.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.2662, allocations: 11.94 kB / 363.8 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/0.2662, allocations: 3.984 kB / 363.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003927/0.2702, allocations: 1.931 MB / 365.7 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.919e-06/0.2702, allocations: 4 kB / 365.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008215/0.271, allocations: 135.8 kB / 365.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004194/0.2715, allocations: 115.7 kB / 365.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.72e-05/0.2715, allocations: 23.92 kB / 366 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005204/0.2768, allocations: 5.701 MB / 371.7 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.8e-06/0.2768, allocations: 4 kB / 371.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002818/0.2796, allocations: 1.272 MB / 372.9 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/0.2799, allocations: 136.5 kB / 373.1 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.2801, allocations: 23.94 kB / 373.1 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007262/0.2808, allocations: 27.97 kB / 373.1 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.281, allocations: 68.58 kB / 373.2 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.096e-05/0.2811, allocations: 20 kB / 373.2 MB, free: 4.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000461/0.2816, allocations: 259.2 kB / 373.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2816, allocations: 0 / 373.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00166/0.2833, allocations: 263.3 kB / 373.7 MB, free: 3.828 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 (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.003429/0.2867, allocations: 1.863 MB / 375.6 MB, free: 1.906 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003345/0.2901, allocations: 1.208 MB / 376.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.2901, allocations: 0 / 376.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2033/0.4934, allocations: 0.789 MB / 377.6 MB, free: 52.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001339/0.4948, allocations: 58.09 kB / 377.6 MB, free: 52.55 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.5081, allocations: 5.787 MB / 383.4 MB, free: 49.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008161/0.509, allocations: 0.9133 MB / 384.3 MB, free: 49.26 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001043/0.5101, allocations: 107.1 kB / 384.4 MB, free: 49.24 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005111/0.5106, allocations: 244 kB / 384.7 MB, free: 49.06 MB / 318.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5106, allocations: 0 / 384.7 MB, free: 49.06 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2875/0.7981, allocations: 12.53 MB / 397.2 MB, free: 44.67 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.24/18.04, allocations: 3.984 kB / 397.2 MB, free: 44.67 MB / 318.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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