Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_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.001672/0.001672, allocations: 102.4 kB / 17.58 MB, free: 5.426 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.006213/0.006213, allocations: 187.9 kB / 18.51 MB, free: 4.512 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.025/2.025, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001752/0.001752, allocations: 51.94 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1447, allocations: 46.62 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.006383/0.1511, allocations: 2.708 MB / 330.1 MB, free: 1.645 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002931/0.1541, allocations: 1.188 MB / 331.3 MB, free: 460 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.1543, allocations: 12 kB / 331.3 MB, free: 448 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00224/0.1566, allocations: 0.6145 MB / 331.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004947/0.1571, allocations: 139 kB / 332.1 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002156/0.1592, allocations: 0.6653 MB / 332.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005363/0.1598, allocations: 298.6 kB / 333 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006778/0.1605, allocations: 279 kB / 333.3 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002469/0.1608, allocations: 127.5 kB / 333.4 MB, free: 14.33 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003342/0.1611, allocations: 163.4 kB / 333.6 MB, free: 14.17 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.189e-05/0.1612, allocations: 24 kB / 333.6 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005404/0.1617, allocations: 179.8 kB / 333.8 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.568e-05/0.1618, allocations: 67.7 kB / 333.8 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002181/0.1621, allocations: 147.3 kB / 334 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008936/0.163, allocations: 490.5 kB / 334.5 MB, free: 13.28 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.163, allocations: 0 / 334.5 MB, free: 13.28 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.163, allocations: 0 / 334.5 MB, free: 13.28 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.163, allocations: 0 / 334.5 MB, free: 13.28 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.002767/0.1658, allocations: 0.7177 MB / 335.2 MB, free: 12.51 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.1659, allocations: 12.03 kB / 335.2 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.166, allocations: 74.66 kB / 335.3 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001592/0.1676, allocations: 116.5 kB / 335.4 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/0.1681, allocations: 265.5 kB / 335.6 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.976e-05/0.1681, allocations: 29.03 kB / 335.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.59e-05/0.1682, allocations: 32.12 kB / 335.7 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008528/0.1691, allocations: 333 kB / 336 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.1691, allocations: 0 / 336 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.996e-05/0.1692, allocations: 16 kB / 336 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.1692, allocations: 11.98 kB / 336 MB, free: 11.58 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007344/0.17, allocations: 242.5 kB / 336.3 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003148/0.1731, allocations: 1.443 MB / 337.7 MB, free: 9.754 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.1743, allocations: 0.7121 MB / 338.4 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002746/0.1746, allocations: 108.8 kB / 338.5 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.1747, allocations: 89.09 kB / 338.6 MB, free: 8.707 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.1748, allocations: 30.56 kB / 338.7 MB, free: 8.668 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.404e-06/0.1748, allocations: 0 / 338.7 MB, free: 8.668 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.002043/0.1768, allocations: 499.3 kB / 339.1 MB, free: 8.152 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.1769, allocations: 55.41 kB / 339.2 MB, free: 8.086 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002573/0.1772, allocations: 171.3 kB / 339.4 MB, free: 7.906 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.1772, allocations: 25.7 kB / 339.4 MB, free: 7.875 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.1774, allocations: 179.9 kB / 339.6 MB, free: 7.691 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.1775, allocations: 82.84 kB / 339.6 MB, free: 7.609 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.1777, allocations: 57.89 kB / 339.7 MB, free: 7.547 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.1779, allocations: 330.8 kB / 340 MB, free: 7.215 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.1781, allocations: 68.53 kB / 340.1 MB, free: 7.148 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.1784, allocations: 124.2 kB / 340.2 MB, free: 7.004 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.1789, allocations: 216 kB / 340.4 MB, free: 6.77 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/0.1789, allocations: 4 kB / 340.4 MB, free: 6.766 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009873/0.1799, allocations: 332.5 kB / 340.8 MB, free: 6.434 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.18, allocations: 8 kB / 340.8 MB, free: 6.426 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.18, allocations: 0 / 340.8 MB, free: 6.426 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004916/0.1805, allocations: 85.02 kB / 340.8 MB, free: 6.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.1808, allocations: 39.92 kB / 340.9 MB, free: 6.301 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003442/0.1843, allocations: 2.025 MB / 342.9 MB, free: 4.137 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.1845, allocations: 31.75 kB / 342.9 MB, free: 4.105 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.422e-05/0.1846, allocations: 12 kB / 343 MB, free: 4.094 MB / 286.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.0002826/0.1849, allocations: 141.8 kB / 343.1 MB, free: 3.945 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.393e-05/0.185, allocations: 19.75 kB / 343.1 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009558/0.186, allocations: 300.7 kB / 343.4 MB, free: 3.629 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.186, allocations: 4 kB / 343.4 MB, free: 3.625 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.227e-06/0.186, allocations: 3.938 kB / 343.4 MB, free: 3.621 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.186, allocations: 0 / 343.4 MB, free: 3.621 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.1877, allocations: 0.6979 MB / 344.1 MB, free: 2.863 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1877, allocations: 0 / 344.1 MB, free: 2.863 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.1879, allocations: 23.98 kB / 344.1 MB, free: 2.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00046/0.1884, allocations: 72.75 kB / 344.2 MB, free: 2.766 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.1884, allocations: 8 kB / 344.2 MB, free: 2.758 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003307/0.1918, allocations: 2.037 MB / 346.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1918, allocations: 0 / 346.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.193, allocations: 451.8 kB / 346.7 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.1932, allocations: 112.9 kB / 346.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.369e-05/0.1933, allocations: 8 kB / 346.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.1935, allocations: 4 kB / 346.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/0.1936, allocations: 15.97 kB / 346.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.1937, allocations: 12 kB / 346.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.1939, allocations: 131.4 kB / 347 MB, free: 15.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1939, allocations: 4.062 kB / 347 MB, free: 15.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009142/0.1948, allocations: 87.84 kB / 347.1 MB, free: 15.73 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.001693/0.1965, allocations: 0.9862 MB / 348 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001078/0.1976, allocations: 363.2 kB / 348.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.1976, allocations: 4.062 kB / 348.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006754/0.1983, allocations: 250.3 kB / 348.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005902/0.1989, allocations: 23.22 kB / 348.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005285/0.2042, allocations: 2.498 MB / 351.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/0.2047, allocations: 0.7596 MB / 351.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000216/0.205, allocations: 25.94 kB / 352 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/0.2051, allocations: 71.59 kB / 352 MB, free: 10.55 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2052, allocations: 0 / 352 MB, free: 10.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2007/0.4059, allocations: 4.865 MB / 356.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.93/17.34, allocations: 3.859 kB / 356.9 MB, free: 5.629 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_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/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches