Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",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.002181/0.002181, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002643/0.002643, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.198/2.198, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001778, allocations: 47.02 kB / 300.7 MB, free: 5.754 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1692, allocations: 49.45 MB / 350.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.006504/0.1758, allocations: 2.819 MB / 353 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002851/0.1787, allocations: 1.145 MB / 354.2 MB, free: 304 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000397/0.1792, allocations: 11.94 kB / 354.2 MB, free: 292 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001943/0.1812, allocations: 0.6201 MB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007121/0.1819, allocations: 131 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001826/0.1838, allocations: 0.6761 MB / 355.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008047/0.1846, allocations: 298.6 kB / 355.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007373/0.1853, allocations: 279 kB / 356.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003686/0.1857, allocations: 127.5 kB / 356.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004083/0.1861, allocations: 167.4 kB / 356.4 MB, free: 14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.1863, allocations: 28 kB / 356.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.1873, allocations: 175.8 kB / 356.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.1875, allocations: 63.7 kB / 356.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004436/0.1879, allocations: 143.3 kB / 356.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00217/0.1901, allocations: 498.5 kB / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.45e-05/0.1902, allocations: 0 / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.41e-06/0.1902, allocations: 0 / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.258e-05/0.1903, allocations: 3.938 kB / 357.3 MB, free: 13.11 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.004824/0.1951, allocations: 0.7255 MB / 358.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001236/0.1953, allocations: 19.83 kB / 358.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002461/0.1956, allocations: 66.72 kB / 358.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001493/0.1971, allocations: 120.5 kB / 358.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00059/0.1977, allocations: 268.5 kB / 358.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.115e-05/0.1978, allocations: 21.03 kB / 358.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.866e-05/0.1979, allocations: 36.12 kB / 358.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009169/0.1988, allocations: 329.1 kB / 358.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.1988, allocations: 0 / 358.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.049e-05/0.1989, allocations: 16 kB / 358.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.931e-05/0.1989, allocations: 8 kB / 358.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007891/0.1997, allocations: 238.5 kB / 359.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004258/0.204, allocations: 1.455 MB / 360.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.2052, allocations: 0.6994 MB / 361.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.2055, allocations: 112 kB / 361.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001776/0.2057, allocations: 85.09 kB / 361.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.2057, allocations: 42.56 kB / 361.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.667e-06/0.2058, allocations: 0 / 361.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.002007/0.2078, allocations: 495 kB / 362 MB, free: 7.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.984e-05/0.2079, allocations: 55.41 kB / 362.1 MB, free: 7.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002953/0.2082, allocations: 173.1 kB / 362.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.2082, allocations: 33.7 kB / 362.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.2084, allocations: 180 kB / 362.5 MB, free: 7.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.2086, allocations: 78.77 kB / 362.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.2087, allocations: 49.98 kB / 362.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.2089, allocations: 330.8 kB / 362.9 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.2091, allocations: 68.53 kB / 363 MB, free: 6.992 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002601/0.2094, allocations: 129 kB / 363.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004761/0.2099, allocations: 228.9 kB / 363.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.2099, allocations: 0 / 363.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001096/0.211, allocations: 327.5 kB / 363.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.2111, allocations: 4.219 kB / 363.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.2111, allocations: 8 kB / 363.7 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005429/0.2117, allocations: 76.8 kB / 363.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/0.212, allocations: 43.86 kB / 363.8 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00374/0.2157, allocations: 2.029 MB / 365.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002972/0.2161, allocations: 27.72 kB / 365.8 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.2162, allocations: 8 kB / 365.8 MB, free: 3.934 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002814/0.2164, allocations: 149.8 kB / 366 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.2166, allocations: 23.81 kB / 366 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/0.2177, allocations: 291.8 kB / 366.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.2177, allocations: 0 / 366.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/0.2178, allocations: 8 kB / 366.3 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.2178, allocations: 0 / 366.3 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.2198, allocations: 0.6939 MB / 367 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.2198, allocations: 0 / 367 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002511/0.22, allocations: 23.98 kB / 367 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005035/0.2206, allocations: 81.03 kB / 367.1 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.2206, allocations: 0 / 367.1 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003635/0.2243, allocations: 2.025 MB / 369.1 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.2243, allocations: 0 / 369.1 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2398/0.4641, allocations: 447.9 kB / 369.6 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.4644, allocations: 114.7 kB / 369.7 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.4644, allocations: 5.297 kB / 369.7 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.4646, allocations: 6.75 kB / 369.7 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.108e-05/0.4646, allocations: 18.44 kB / 369.7 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.4647, allocations: 5.938 kB / 369.7 MB, free: 24.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001253/0.4648, allocations: 131.2 kB / 369.8 MB, free: 24.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4648, allocations: 0 / 369.8 MB, free: 24.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006893/0.4655, allocations: 89.86 kB / 369.9 MB, free: 24.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001078/0.4666, allocations: 1.009 MB / 370.9 MB, free: 24.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000705/0.4673, allocations: 349.4 kB / 371.3 MB, free: 24.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4673, allocations: 0 / 371.3 MB, free: 24.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003216/0.4677, allocations: 252.9 kB / 371.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.4681, allocations: 23.2 kB / 371.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003068/0.4711, allocations: 2.499 MB / 374 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.4714, allocations: 0.7577 MB / 374.8 MB, free: 21.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001196/0.4716, allocations: 25.23 kB / 374.8 MB, free: 21.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.308e-05/0.4717, allocations: 72.19 kB / 374.9 MB, free: 21.84 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4717, allocations: 0 / 374.9 MB, free: 21.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02968/0.5013, allocations: 4.956 MB / 379.8 MB, free: 21.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.43/15.93, allocations: 15.58 kB / 379.9 MB, free: 21.25 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches