Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 216.6 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 47.94 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2464, allocations: 53.37 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006424/0.2528, allocations: 5.084 MB / 436.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002453/0.2552, allocations: 1.34 MB / 437.6 MB, free: 440 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002879/0.2555, allocations: 19.88 kB / 437.6 MB, free: 420 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004398/0.256, allocations: 166.5 kB / 437.7 MB, free: 252 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006452/0.2566, allocations: 333.3 kB / 438.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004377/0.2571, allocations: 227.7 kB / 438.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001288/0.2583, allocations: 1.178 MB / 439.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.2587, allocations: 219.5 kB / 439.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005299/0.2592, allocations: 478.3 kB / 440.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006541/0.2599, allocations: 0.5019 MB / 440.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001458/0.26, allocations: 104 kB / 440.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.2602, allocations: 104 kB / 440.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.2604, allocations: 231.2 kB / 441.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005118/0.2609, allocations: 0.5211 MB / 441.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001253/0.2622, allocations: 1.202 MB / 442.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.2622, allocations: 3.984 kB / 442.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.03e-05/0.2622, allocations: 4 kB / 442.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.2622, allocations: 0 / 442.8 MB, free: 11.15 MB / 350.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.002566/0.2648, allocations: 1.288 MB / 444.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.2648, allocations: 12.03 kB / 444.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001897/0.265, allocations: 115.9 kB / 444.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/0.2652, allocations: 112.3 kB / 444.3 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.2662, allocations: 0.539 MB / 444.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002934/0.2665, allocations: 301.2 kB / 445.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.2666, allocations: 63.89 kB / 445.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.2682, allocations: 0.8673 MB / 446.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.2682, allocations: 4 kB / 446.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.536e-05/0.2683, allocations: 24 kB / 446.1 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.2683, allocations: 12 kB / 446.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.2697, allocations: 0.618 MB / 446.8 MB, free: 6.961 MB / 350.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.003533/0.2733, allocations: 2.05 MB / 448.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.2746, allocations: 0.5858 MB / 449.4 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007899/0.2754, allocations: 350.6 kB / 449.7 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.715e-05/0.2754, allocations: 16.64 kB / 449.7 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/0.2755, allocations: 51.22 kB / 449.8 MB, free: 3.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 1.994e-06/0.2755, allocations: 4 kB / 449.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.00518/0.2806, allocations: 1.484 MB / 451.3 MB, free: 2.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004449/0.2811, allocations: 0.8234 MB / 452.1 MB, free: 1.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008545/0.2819, allocations: 0.6371 MB / 452.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.134e-05/0.282, allocations: 41.7 kB / 452.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003038/0.2823, allocations: 353.3 kB / 453.1 MB, free: 236 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000261/0.2826, allocations: 273.8 kB / 453.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.2828, allocations: 138.7 kB / 453.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002079/0.283, allocations: 390.8 kB / 453.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006906/0.2837, allocations: 265.8 kB / 454.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009676/0.2847, allocations: 0.5546 MB / 454.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.2861, allocations: 0.6817 MB / 455.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.2861, allocations: 4 kB / 455.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002814/0.2889, allocations: 1.091 MB / 456.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.432e-05/0.289, allocations: 89.05 kB / 456.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.289, allocations: 0 / 456.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007259/0.2898, allocations: 231.3 kB / 456.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006851/0.2904, allocations: 139.8 kB / 457 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008534/0.299, allocations: 6.526 MB / 463.5 MB, free: 5.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00093/0.2999, allocations: 99.61 kB / 463.6 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.067e-05/0.3, allocations: 27.98 kB / 463.6 MB, free: 5.082 MB / 366.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.0003888/0.3004, allocations: 221.7 kB / 463.8 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.3005, allocations: 91.66 kB / 463.9 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001726/0.3007, allocations: 83.34 kB / 464 MB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.3007, allocations: 11.98 kB / 464 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3007, allocations: 4 kB / 464 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002634/0.3033, allocations: 1.233 MB / 465.2 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004022/0.3074, allocations: 1.888 MB / 467.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.3074, allocations: 0 / 467.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007324/0.3081, allocations: 139.8 kB / 467.3 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005655/0.3087, allocations: 206.3 kB / 467.5 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-05/0.3087, allocations: 16 kB / 467.5 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007039/0.3157, allocations: 5.047 MB / 472.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.3157, allocations: 0 / 472.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00342/0.3192, allocations: 1.388 MB / 473.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004035/0.3196, allocations: 167.2 kB / 474.1 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.3197, allocations: 24.11 kB / 474.1 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006563/0.3203, allocations: 51.95 kB / 474.2 MB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.3205, allocations: 64.53 kB / 474.2 MB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.447e-05/0.3206, allocations: 23.94 kB / 474.2 MB, free: 9.879 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006121/0.3212, allocations: 463 kB / 474.7 MB, free: 9.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3212, allocations: 0 / 474.7 MB, free: 9.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008519/0.322, allocations: 279.8 kB / 475 MB, free: 9.156 MB / 382.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.003759/0.3258, allocations: 1.963 MB / 476.9 MB, free: 7.152 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002371/0.3281, allocations: 1.32 MB / 478.2 MB, free: 5.746 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3282, allocations: 3.938 kB / 478.3 MB, free: 5.742 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.3296, allocations: 0.7418 MB / 479 MB, free: 4.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.3306, allocations: 227 kB / 479.2 MB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.3441, allocations: 7.553 MB / 486.8 MB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006077/0.3447, allocations: 0.9479 MB / 487.7 MB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004344/0.3452, allocations: 102.4 kB / 487.8 MB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004209/0.3456, allocations: 299.3 kB / 488.1 MB, free: 11.64 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3456, allocations: 4 kB / 488.1 MB, free: 11.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07303/0.4186, allocations: 26.61 MB / 0.5027 GB, free: 1.438 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.36/14.78, allocations: 10.61 kB / 0.5027 GB, free: 1.43 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable heatCapacitor1.T in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv. Warning: Get data of variable heatCapacitor1.T from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv failed! Error: Could not read variable heatCapacitor2.T in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv. Warning: Get data of variable heatCapacitor2.T from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv failed! Error: Could not read variable pipe1.T in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv. Warning: Get data of variable pipe1.T from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv failed! Error: Could not read variable pipe2.T in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv. Warning: Get data of variable pipe2.T from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv failed! Error: Could not read variable pipe3.T in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv. Warning: Get data of variable pipe3.T from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.23477245200047]