Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.00171/0.001717, allocations: 104 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.001984/0.001984, 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.407/2.407, 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.001904/0.001904, allocations: 52.14 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1486, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.007707/0.1564, allocations: 5.025 MB / 332.4 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.1594, allocations: 1.345 MB / 333.7 MB, free: 13.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007404/0.1602, allocations: 11.94 kB / 333.8 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006059/0.1608, allocations: 154.6 kB / 333.9 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001024/0.1619, allocations: 325.2 kB / 334.2 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.1624, allocations: 227.6 kB / 334.4 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001234/0.1637, allocations: 1.176 MB / 335.6 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004605/0.1642, allocations: 314 kB / 335.9 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005062/0.1647, allocations: 458.4 kB / 336.4 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005456/0.1652, allocations: 0.4979 MB / 336.9 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002733/0.1655, allocations: 104 kB / 337 MB, free: 10.72 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001878/0.1657, allocations: 108 kB / 337.1 MB, free: 10.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002671/0.166, allocations: 227.2 kB / 337.3 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007463/0.1668, allocations: 0.521 MB / 337.8 MB, free: 9.867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001672/0.1684, allocations: 1.18 MB / 339 MB, free: 8.684 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.1685, allocations: 0 / 339 MB, free: 8.684 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.378e-06/0.1685, allocations: 4 kB / 339 MB, free: 8.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.1685, allocations: 0 / 339 MB, free: 8.68 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002819/0.1713, allocations: 1.348 MB / 340.4 MB, free: 7.258 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.43e-05/0.1714, allocations: 8.031 kB / 340.4 MB, free: 7.25 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002834/0.1717, allocations: 119.8 kB / 340.5 MB, free: 7.125 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003112/0.172, allocations: 111.7 kB / 340.6 MB, free: 7.016 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001628/0.1737, allocations: 0.5909 MB / 341.2 MB, free: 6.387 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000495/0.1742, allocations: 158.9 kB / 341.3 MB, free: 6.211 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001657/0.1744, allocations: 63.94 kB / 341.4 MB, free: 6.148 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002461/0.1769, allocations: 0.8743 MB / 342.3 MB, free: 5.172 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/0.1769, allocations: 0 / 342.3 MB, free: 5.172 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.1771, allocations: 32 kB / 342.3 MB, free: 5.141 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.1771, allocations: 12 kB / 342.3 MB, free: 5.129 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002663/0.1798, allocations: 0.6375 MB / 343 MB, free: 4.492 MB / 286.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00582/0.1856, allocations: 2.104 MB / 345.1 MB, free: 2.285 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002504/0.1881, allocations: 0.8662 MB / 345.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.1897, allocations: 406.6 kB / 346.3 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.099e-05/0.1898, allocations: 12.64 kB / 346.3 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.894e-05/0.1898, allocations: 51.22 kB / 346.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of pre-optimization done (n=73): time 4.799e-06/0.1899, allocations: 0 / 346.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of matching and sorting (n=73): time 0.009387/0.1993, allocations: 1.828 MB / 348.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006412/0.1999, allocations: 0.8272 MB / 349 MB, free: 13.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001657/0.2016, allocations: 0.6409 MB / 349.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002069/0.2019, allocations: 45.7 kB / 349.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004505/0.2023, allocations: 341 kB / 350.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003787/0.2027, allocations: 260.2 kB / 350.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003857/0.2031, allocations: 146.6 kB / 350.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002597/0.2034, allocations: 386.8 kB / 350.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.2047, allocations: 285.8 kB / 351.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/0.2064, allocations: 0.5624 MB / 351.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002597/0.209, allocations: 0.6974 MB / 352.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.2091, allocations: 0 / 352.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.005022/0.2141, allocations: 1.122 MB / 353.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/0.2143, allocations: 85.11 kB / 353.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/0.2143, allocations: 4 kB / 353.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.2155, allocations: 247.2 kB / 353.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.2167, allocations: 139.8 kB / 354 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01443/0.2312, allocations: 6.935 MB / 360.9 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.233, allocations: 107.4 kB / 361 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002311/0.2333, allocations: 20 kB / 361 MB, free: 1.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0009197/0.2342, allocations: 225.7 kB / 361.2 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004887/0.2347, allocations: 87 kB / 361.3 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003527/0.2351, allocations: 87.34 kB / 361.4 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.2351, allocations: 4 kB / 361.4 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.2351, allocations: 4 kB / 361.4 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004394/0.2395, allocations: 1.264 MB / 362.7 MB, free: 15.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006969/0.2466, allocations: 1.964 MB / 364.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.2466, allocations: 4 kB / 364.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007575/0.2474, allocations: 147.8 kB / 364.8 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005982/0.248, allocations: 194.5 kB / 365 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.517e-05/0.2481, allocations: 15.94 kB / 365 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007823/0.2559, allocations: 5.357 MB / 370.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.256, allocations: 0 / 370.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003955/0.2599, allocations: 1.437 MB / 371.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000678/0.2607, allocations: 236 kB / 372 MB, free: 5.484 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003073/0.261, allocations: 24.12 kB / 372 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/0.2623, allocations: 59.94 kB / 372.1 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/0.2626, allocations: 60.56 kB / 372.2 MB, free: 5.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.962e-05/0.2627, allocations: 19.94 kB / 372.2 MB, free: 5.324 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001101/0.2638, allocations: 467 kB / 372.6 MB, free: 4.875 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.2638, allocations: 0 / 372.6 MB, free: 4.875 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00121/0.2651, allocations: 283.7 kB / 372.9 MB, free: 4.598 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004323/0.2694, allocations: 2.001 MB / 374.9 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003566/0.273, allocations: 1.41 MB / 376.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/0.273, allocations: 0 / 376.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002295/0.2753, allocations: 0.777 MB / 377.1 MB, free: 248 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001516/0.2769, allocations: 231.9 kB / 377.3 MB, free: 16 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2486/0.5255, allocations: 8.067 MB / 385.4 MB, free: 50.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009396/0.5265, allocations: 0.9424 MB / 386.3 MB, free: 49.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001149/0.5277, allocations: 103.5 kB / 386.4 MB, free: 49.6 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007666/0.5285, allocations: 303.1 kB / 386.7 MB, free: 49.39 MB / 318.1 MB Notification: Performance of SimCode: time 2.013e-06/0.5285, allocations: 0 / 386.7 MB, free: 49.39 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09027/0.6188, allocations: 25.64 MB / 412.4 MB, free: 30.14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.97/19.59, allocations: 11.72 kB / 412.4 MB, free: 30.13 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_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_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches