Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.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.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",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.002295/0.002295, allocations: 105.6 kB / 17.58 MB, free: 5.422 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.002167/0.002167, allocations: 191.9 kB / 18.5 MB, free: 4.516 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.436/2.436, 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.002378/0.002379, allocations: 47.92 kB / 280.8 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1612, allocations: 46.63 MB / 327.4 MB, free: 4.402 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.007436/0.1687, allocations: 3.043 MB / 330.4 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.1709, allocations: 1.003 MB / 331.4 MB, free: 328 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002816/0.1712, allocations: 11.94 kB / 331.4 MB, free: 316 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.1716, allocations: 95.05 kB / 331.5 MB, free: 220 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002244/0.1718, allocations: 99 kB / 331.6 MB, free: 120 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006664/0.1725, allocations: 219.6 kB / 331.8 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006114/0.1731, allocations: 0.5371 MB / 332.4 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004192/0.1735, allocations: 226.6 kB / 332.6 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.1738, allocations: 175.3 kB / 332.8 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.174, allocations: 182.9 kB / 333 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.971e-05/0.1741, allocations: 36 kB / 333 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.1742, allocations: 51.98 kB / 333 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.482e-05/0.1743, allocations: 83.66 kB / 333.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001942/0.1745, allocations: 234.6 kB / 333.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005274/0.175, allocations: 0.5569 MB / 333.9 MB, free: 13.83 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1751, allocations: 0 / 333.9 MB, free: 13.83 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1751, allocations: 0 / 333.9 MB, free: 13.83 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.1751, allocations: 0 / 333.9 MB, free: 13.83 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.00104/0.1761, allocations: 0.7366 MB / 334.6 MB, free: 13.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1762, allocations: 12.02 kB / 334.7 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.1763, allocations: 82.72 kB / 334.7 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.1765, allocations: 59.84 kB / 334.8 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005921/0.1771, allocations: 394.4 kB / 335.2 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.1771, allocations: 29 kB / 335.2 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.237e-05/0.1772, allocations: 47.92 kB / 335.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008349/0.178, allocations: 495.3 kB / 335.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.1781, allocations: 0 / 335.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.698e-05/0.1781, allocations: 20 kB / 335.8 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.896e-05/0.1781, allocations: 12 kB / 335.8 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005134/0.1787, allocations: 250.1 kB / 336 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/0.1814, allocations: 2.83 MB / 338.8 MB, free: 8.562 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004458/0.1818, allocations: 162.6 kB / 339 MB, free: 8.395 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.182, allocations: 72.81 kB / 339.1 MB, free: 8.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002609/0.1822, allocations: 89.11 kB / 339.2 MB, free: 8.215 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.1823, allocations: 38.48 kB / 339.2 MB, free: 8.168 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.903e-06/0.1823, allocations: 0 / 339.2 MB, free: 8.168 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.001632/0.1839, allocations: 0.6241 MB / 339.8 MB, free: 7.488 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.184, allocations: 55.34 kB / 339.9 MB, free: 7.422 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004735/0.1845, allocations: 345.5 kB / 340.2 MB, free: 7.074 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.1845, allocations: 33.7 kB / 340.2 MB, free: 7.035 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002759/0.1848, allocations: 299 kB / 340.5 MB, free: 6.738 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.107e-05/0.1848, allocations: 67.09 kB / 340.6 MB, free: 6.672 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/0.1851, allocations: 69.56 kB / 340.7 MB, free: 6.598 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1853, allocations: 350.7 kB / 341 MB, free: 6.246 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.1854, allocations: 71.73 kB / 341.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005031/0.186, allocations: 215.4 kB / 341.3 MB, free: 5.895 MB / 286.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseCapacity.mass.T = $START.inverseCapacity.mass.T ($START.directCapacity.heatFlowToTemperature.y = $START.inverseCapacity.mass.T) Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.1872, allocations: 0.5159 MB / 341.8 MB, free: 5.289 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1872, allocations: 0 / 341.8 MB, free: 5.289 MB / 286.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006242/0.1878, allocations: 365.4 kB / 342.2 MB, free: 4.922 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.1879, allocations: 11.12 kB / 342.2 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.1879, allocations: 4 kB / 342.2 MB, free: 4.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001615/0.1881, allocations: 33.53 kB / 342.2 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/0.1884, allocations: 83.84 kB / 342.3 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.19, allocations: 1.631 MB / 343.9 MB, free: 3.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.1902, allocations: 12 kB / 343.9 MB, free: 3.008 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.1903, allocations: 16 kB / 344 MB, free: 2.992 MB / 286.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: inverseCapacity.mass.T = $START.inverseCapacity.mass.T. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (39): * Single equations (assignments): 38 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002531/0.1905, allocations: 177.6 kB / 344.1 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.475e-05/0.1906, allocations: 43.53 kB / 344.2 MB, free: 2.766 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.378e-05/0.1907, allocations: 31.59 kB / 344.2 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1907, allocations: 4 kB / 344.2 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1907, allocations: 0 / 344.2 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1907, allocations: 0 / 344.2 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.1918, allocations: 0.7124 MB / 344.9 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1918, allocations: 4.031 kB / 344.9 MB, free: 1.941 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.192, allocations: 39.92 kB / 345 MB, free: 1.902 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.604e-05/0.1921, allocations: 24.84 kB / 345 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.1921, allocations: 8 kB / 345 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.1932, allocations: 1.442 MB / 346.4 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1932, allocations: 0 / 346.4 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005735/0.1938, allocations: 372.5 kB / 346.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.897e-05/0.1939, allocations: 104.7 kB / 346.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.948e-05/0.1939, allocations: 0 / 346.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.1941, allocations: 11.98 kB / 346.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.793e-05/0.1942, allocations: 15.91 kB / 346.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.1942, allocations: 4 kB / 346.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002784/0.1945, allocations: 239.2 kB / 347.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1945, allocations: 4 kB / 347.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004903/0.195, allocations: 64 kB / 347.2 MB, free: 15.45 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inverseCapacity.mass.T,capacitor3a.T,capacitor3b.T) * 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,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.000903/0.1959, allocations: 0.8932 MB / 348.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007227/0.1966, allocations: 315.7 kB / 348.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1966, allocations: 0 / 348.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002888/0.1969, allocations: 190.7 kB / 348.6 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.1973, allocations: 33.55 kB / 348.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008104/0.2054, allocations: 3.349 MB / 352 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001076/0.2066, allocations: 0.8146 MB / 352.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003218/0.207, allocations: 39.27 kB / 352.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000414/0.2074, allocations: 151.4 kB / 353 MB, free: 9.375 MB / 302.1 MB Notification: Performance of SimCode: time 3.326e-06/0.2074, allocations: 4 kB / 353 MB, free: 9.371 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05278/0.2602, allocations: 6.093 MB / 359.1 MB, free: 3.215 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.13/15.39, allocations: 16.34 kB / 359.1 MB, free: 3.199 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_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_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches