Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002172/0.002172, allocations: 194.6 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 51.92 kB / 370.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3235, allocations: 52.17 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.007712/0.3312, allocations: 4.511 MB / 427.1 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003483/0.3347, allocations: 1.25 MB / 428.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008111/0.3355, allocations: 11.94 kB / 428.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000717/0.3362, allocations: 166.6 kB / 428.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001303/0.3375, allocations: 333.2 kB / 428.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007886/0.3383, allocations: 231.6 kB / 429.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002147/0.3405, allocations: 1.18 MB / 430.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004896/0.341, allocations: 210.5 kB / 430.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009256/0.3419, allocations: 470.3 kB / 430.9 MB, free: 5.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009366/0.3428, allocations: 445.9 kB / 431.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003522/0.3432, allocations: 104 kB / 431.4 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004041/0.3436, allocations: 104 kB / 431.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002916/0.3439, allocations: 227.2 kB / 431.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006545/0.3445, allocations: 450.1 kB / 432.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001459/0.346, allocations: 1.214 MB / 433.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.346, allocations: 0 / 433.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.346, allocations: 0 / 433.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.806e-05/0.346, allocations: 0 / 433.4 MB, free: 3.461 MB / 334.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.002835/0.3488, allocations: 1.292 MB / 434.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.253e-05/0.3489, allocations: 12.03 kB / 434.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001933/0.3491, allocations: 115.9 kB / 434.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002094/0.3493, allocations: 120.2 kB / 434.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.3505, allocations: 0.5428 MB / 435.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003472/0.3508, allocations: 297.2 kB / 435.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.3509, allocations: 59.94 kB / 435.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/0.353, allocations: 1.62 MB / 437.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.353, allocations: 4 kB / 437.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.935e-05/0.3531, allocations: 28 kB / 437.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.3531, allocations: 12 kB / 437.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.3546, allocations: 0.6062 MB / 438.1 MB, free: 14.33 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.00361/0.3582, allocations: 1.631 MB / 439.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.3595, allocations: 0.5754 MB / 440.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008218/0.3604, allocations: 363.4 kB / 440.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.485e-05/0.3604, allocations: 12.64 kB / 440.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/0.3605, allocations: 47.22 kB / 440.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 4.448e-06/0.3605, allocations: 0 / 440.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.005138/0.3656, allocations: 1.496 MB / 442.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004811/0.3661, allocations: 0.8234 MB / 443 MB, free: 9.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008505/0.3669, allocations: 0.6371 MB / 443.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.475e-05/0.367, allocations: 45.7 kB / 443.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003233/0.3674, allocations: 353.2 kB / 444.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002519/0.3676, allocations: 265.6 kB / 444.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002414/0.3678, allocations: 142.7 kB / 444.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002215/0.3681, allocations: 394.7 kB / 444.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007169/0.3688, allocations: 347 kB / 445.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.3703, allocations: 1.391 MB / 446.6 MB, free: 5.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001491/0.3717, allocations: 0.6817 MB / 447.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.3718, allocations: 4 kB / 447.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00272/0.3745, allocations: 1.17 MB / 448.4 MB, free: 3.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.492e-05/0.3745, allocations: 85.11 kB / 448.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3746, allocations: 4 kB / 448.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000716/0.3753, allocations: 231.3 kB / 448.8 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00063/0.3759, allocations: 139.8 kB / 448.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008283/0.3842, allocations: 6.477 MB / 455.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.3852, allocations: 107.5 kB / 455.5 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.777e-05/0.3853, allocations: 23.98 kB / 455.5 MB, free: 11.74 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.0003996/0.3857, allocations: 217.7 kB / 455.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.3858, allocations: 95.42 kB / 455.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001927/0.386, allocations: 95.33 kB / 455.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.386, allocations: 8 kB / 455.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.386, allocations: 0 / 455.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002524/0.3886, allocations: 1.225 MB / 457.1 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004071/0.3926, allocations: 1.74 MB / 458.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.3926, allocations: 0 / 458.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007877/0.3934, allocations: 139.8 kB / 459 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005807/0.394, allocations: 202.5 kB / 459.2 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.694e-05/0.3941, allocations: 19.94 kB / 459.2 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006966/0.401, allocations: 5.004 MB / 464.2 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.401, allocations: 0 / 464.2 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003506/0.4045, allocations: 1.392 MB / 465.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004871/0.405, allocations: 171.2 kB / 465.8 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.4051, allocations: 23.98 kB / 465.8 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006381/0.4058, allocations: 51.95 kB / 465.9 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.406, allocations: 64.53 kB / 465.9 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.443e-05/0.406, allocations: 16 kB / 465.9 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005986/0.4066, allocations: 462.9 kB / 466.4 MB, free: 288 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4066, allocations: 0 / 466.4 MB, free: 288 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.00097/0.4076, allocations: 287.7 kB / 466.7 MB, free: 0 / 366.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.00376/0.4113, allocations: 1.955 MB / 468.6 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.4138, allocations: 1.396 MB / 470 MB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4138, allocations: 0 / 470 MB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.4152, allocations: 0.7457 MB / 470.8 MB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.4162, allocations: 239 kB / 471 MB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/0.4297, allocations: 7.851 MB / 478.9 MB, free: 3.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.4301, allocations: 354.2 kB / 479.2 MB, free: 3.008 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005334/0.4306, allocations: 102.4 kB / 479.3 MB, free: 2.902 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004392/0.4311, allocations: 303.3 kB / 479.6 MB, free: 2.605 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4311, allocations: 0 / 479.6 MB, free: 2.605 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07591/0.507, allocations: 28.24 MB / 0.4959 GB, free: 6.852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/14.14, allocations: 11.92 kB / 0.4959 GB, free: 6.84 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv. Warning: Get data of variable heatCapacitor1.T from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv failed! Error: Could not read variable heatCapacitor2.T in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv. Warning: Get data of variable heatCapacitor2.T from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv failed! Error: Could not read variable pipe1.T in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv. Warning: Get data of variable pipe1.T from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv failed! Error: Could not read variable pipe2.T in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv. Warning: Get data of variable pipe2.T from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv failed! Error: Could not read variable pipe3.T in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv. Warning: Get data of variable pipe3.T from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.747768392786384]