Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.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.ControlledTemperature,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",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.002086/0.002086, allocations: 104.1 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.002753/0.002753, allocations: 191.9 kB / 18.51 MB, free: 4.508 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.387/2.387, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002521/0.002521, allocations: 52.14 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1503, allocations: 46.62 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.007304/0.1577, allocations: 2.463 MB / 329.8 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002259/0.16, allocations: 0.6398 MB / 330.5 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003661/0.1604, allocations: 4 kB / 330.5 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002862/0.1607, allocations: 35.59 kB / 330.5 MB, free: 1.215 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004154/0.1612, allocations: 75.33 kB / 330.6 MB, free: 1.141 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005675/0.1618, allocations: 67.86 kB / 330.7 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006648/0.1625, allocations: 262.8 kB / 330.9 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000406/0.1629, allocations: 107.7 kB / 331 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002599/0.1632, allocations: 95.64 kB / 331.1 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003439/0.1635, allocations: 103.5 kB / 331.2 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.137e-05/0.1636, allocations: 24 kB / 331.2 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002072/0.1639, allocations: 35.92 kB / 331.3 MB, free: 472 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.643e-05/0.164, allocations: 43.84 kB / 331.3 MB, free: 428 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000295/0.1643, allocations: 119.4 kB / 331.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005781/0.1649, allocations: 255.1 kB / 331.7 MB, free: 52 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/0.1649, allocations: 0 / 331.7 MB, free: 52 kB / 270.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.1649, allocations: 0 / 331.7 MB, free: 52 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.892e-05/0.165, allocations: 0 / 331.7 MB, free: 52 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001838/0.1668, allocations: 0.542 MB / 332.2 MB, free: 15.46 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.221e-05/0.1669, allocations: 8.031 kB / 332.2 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001991/0.1671, allocations: 59.17 kB / 332.3 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000255/0.1674, allocations: 24.66 kB / 332.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004732/0.1679, allocations: 236.3 kB / 332.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.1679, allocations: 16.81 kB / 332.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.569e-05/0.168, allocations: 24.38 kB / 332.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008375/0.1688, allocations: 234 kB / 332.8 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.1689, allocations: 0 / 332.8 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.1689, allocations: 8 kB / 332.8 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.1689, allocations: 8 kB / 332.8 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006238/0.1696, allocations: 161.6 kB / 333 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.1716, allocations: 0.8244 MB / 333.8 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005763/0.1722, allocations: 166.4 kB / 334 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002798/0.1725, allocations: 84.81 kB / 334.1 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.1726, allocations: 4 kB / 334.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.1726, allocations: 34.5 kB / 334.1 MB, free: 13.44 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 2.434e-06/0.1726, allocations: 0 / 334.1 MB, free: 13.44 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.001484/0.1741, allocations: 336.5 kB / 334.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.1742, allocations: 51.41 kB / 334.5 MB, free: 13.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.1745, allocations: 182.6 kB / 334.6 MB, free: 12.83 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.1746, allocations: 29.7 kB / 334.7 MB, free: 12.8 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.1747, allocations: 148.1 kB / 334.8 MB, free: 12.65 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.325e-05/0.1748, allocations: 55.19 kB / 334.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.175, allocations: 41.7 kB / 334.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.1752, allocations: 334.8 kB / 335.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.1754, allocations: 55.95 kB / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002363/0.1757, allocations: 84.2 kB / 335.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004664/0.1762, allocations: 147.3 kB / 335.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.1762, allocations: 4 kB / 335.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007026/0.1769, allocations: 222 kB / 335.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.1769, allocations: 8 kB / 335.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.177, allocations: 0 / 335.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000269/0.1772, allocations: 32.83 kB / 335.8 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.1775, allocations: 35.92 kB / 335.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002074/0.1796, allocations: 1.477 MB / 337.3 MB, free: 9.973 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.1799, allocations: 35.83 kB / 337.3 MB, free: 9.938 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.1799, allocations: 4 kB / 337.3 MB, free: 9.934 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (onOffController.y,$PRE.onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.0002217/0.1802, allocations: 129.8 kB / 337.5 MB, free: 9.797 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.393e-05/0.1803, allocations: 15.81 kB / 337.5 MB, free: 9.781 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.48e-05/0.1803, allocations: 25.86 kB / 337.5 MB, free: 9.758 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.1804, allocations: 0 / 337.5 MB, free: 9.758 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.1804, allocations: 3.938 kB / 337.5 MB, free: 9.754 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1804, allocations: 4 kB / 337.5 MB, free: 9.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.1817, allocations: 0.5193 MB / 338 MB, free: 9.172 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.1817, allocations: 0 / 338 MB, free: 9.172 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.182, allocations: 31.86 kB / 338.1 MB, free: 9.141 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002017/0.1822, allocations: 36.83 kB / 338.1 MB, free: 9.102 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.1823, allocations: 8 kB / 338.1 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001841/0.1841, allocations: 1.461 MB / 339.6 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/0.1841, allocations: 8.031 kB / 339.6 MB, free: 7.488 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1852, allocations: 354 kB / 339.9 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.1854, allocations: 105 kB / 340 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.939e-05/0.1854, allocations: 8 kB / 340 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003362/0.1858, allocations: 19.97 kB / 340 MB, free: 6.977 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.1859, allocations: 15.97 kB / 340.1 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.1859, allocations: 8 kB / 340.1 MB, free: 6.953 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.1861, allocations: 124.3 kB / 340.2 MB, free: 6.832 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1862, allocations: 4 kB / 340.2 MB, free: 6.828 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006524/0.1868, allocations: 63.84 kB / 340.3 MB, free: 6.766 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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 Backend phase and start with SimCode phase: time 0.001535/0.1884, allocations: 0.877 MB / 341.1 MB, free: 5.855 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.1894, allocations: 271.4 kB / 341.4 MB, free: 5.578 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.1894, allocations: 7.938 kB / 341.4 MB, free: 5.57 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004631/0.1899, allocations: 186.7 kB / 341.6 MB, free: 5.375 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007218/0.1906, allocations: 32.23 kB / 341.6 MB, free: 5.344 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005048/0.1957, allocations: 2.207 MB / 343.8 MB, free: 3.031 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005861/0.1963, allocations: 0.7359 MB / 344.6 MB, free: 2.266 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000182/0.1966, allocations: 17.55 kB / 344.6 MB, free: 2.25 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.1967, allocations: 55.42 kB / 344.6 MB, free: 2.195 MB / 286.1 MB Notification: Performance of SimCode: time 1.393e-06/0.1968, allocations: 0 / 344.6 MB, free: 2.195 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04628/0.2431, allocations: 4.436 MB / 349.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.14, allocations: 7.984 kB / 349.1 MB, free: 13.68 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/ControlledTemperature/ControlledTemperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches