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.001825/0.001825, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.002202/0.002202, allocations: 198.8 kB / 20.73 MB, free: 2.289 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.405/1.405, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.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.001433/0.001433, allocations: 47.92 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09802/0.09945, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006537/0.106, allocations: 5.052 MB / 422.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002751/0.1087, allocations: 1.305 MB / 424.1 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005213/0.1093, allocations: 11.94 kB / 424.2 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004921/0.1098, allocations: 158.5 kB / 424.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007801/0.1105, allocations: 333.2 kB / 424.6 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005353/0.1111, allocations: 231.6 kB / 424.9 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001365/0.1124, allocations: 1.183 MB / 426 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003968/0.1128, allocations: 222.1 kB / 426.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005994/0.1134, allocations: 458.5 kB / 426.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006492/0.1141, allocations: 0.5096 MB / 427.2 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001518/0.1142, allocations: 104 kB / 427.3 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001811/0.1144, allocations: 108 kB / 427.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002059/0.1146, allocations: 223.2 kB / 427.6 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005033/0.1151, allocations: 0.5172 MB / 428.2 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001363/0.1165, allocations: 1.214 MB / 429.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1165, allocations: 0 / 429.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1165, allocations: 0 / 429.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.055e-05/0.1165, allocations: 0 / 429.4 MB, free: 0.9609 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.002994/0.1195, allocations: 1.367 MB / 430.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.1196, allocations: 12.03 kB / 430.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001951/0.1198, allocations: 116 kB / 430.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002261/0.12, allocations: 116.3 kB / 431 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.1211, allocations: 0.5915 MB / 431.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.1214, allocations: 147 kB / 431.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.1215, allocations: 67.88 kB / 431.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.1231, allocations: 0.8626 MB / 432.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.1231, allocations: 3.984 kB / 432.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-05/0.1232, allocations: 28 kB / 432.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.1232, allocations: 20 kB / 432.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.1247, allocations: 0.6024 MB / 433.3 MB, free: 12.8 MB / 366.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.003675/0.1284, allocations: 2.096 MB / 435.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.1299, allocations: 0.8129 MB / 436.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008216/0.1307, allocations: 354.6 kB / 436.5 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.143e-05/0.1308, allocations: 16.64 kB / 436.6 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.828e-05/0.1308, allocations: 51.22 kB / 436.6 MB, free: 9.297 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.455e-06/0.1308, allocations: 0 / 436.6 MB, free: 9.297 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.005335/0.1361, allocations: 1.789 MB / 438.4 MB, free: 7.414 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004653/0.1366, allocations: 0.8273 MB / 439.2 MB, free: 6.391 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008677/0.1375, allocations: 0.6292 MB / 439.9 MB, free: 5.754 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.554e-05/0.1376, allocations: 45.7 kB / 439.9 MB, free: 5.703 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003142/0.1379, allocations: 353.2 kB / 440.3 MB, free: 5.355 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002476/0.1381, allocations: 269.7 kB / 440.5 MB, free: 5.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002552/0.1384, allocations: 138.7 kB / 440.7 MB, free: 4.949 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000211/0.1386, allocations: 386.7 kB / 441 MB, free: 4.562 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000723/0.1393, allocations: 273.8 kB / 441.3 MB, free: 4.297 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/0.1403, allocations: 0.5546 MB / 441.8 MB, free: 3.641 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.1418, allocations: 0.6779 MB / 442.5 MB, free: 2.941 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1418, allocations: 0 / 442.5 MB, free: 2.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002854/0.1447, allocations: 1.087 MB / 443.6 MB, free: 1.812 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.946e-05/0.1448, allocations: 89.09 kB / 443.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1448, allocations: 0 / 443.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000772/0.1455, allocations: 235.2 kB / 443.9 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006556/0.1462, allocations: 139.8 kB / 444.1 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1892/0.3354, allocations: 6.928 MB / 451 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008669/0.3362, allocations: 106.3 kB / 451.1 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.745e-05/0.3363, allocations: 21.2 kB / 451.1 MB, free: 24.7 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.0002946/0.3366, allocations: 221.7 kB / 451.3 MB, free: 24.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.3367, allocations: 88.67 kB / 451.4 MB, free: 24.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001595/0.3368, allocations: 92.08 kB / 451.5 MB, free: 24.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3368, allocations: 10.75 kB / 451.5 MB, free: 24.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3369, allocations: 3.375 kB / 451.5 MB, free: 24.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002066/0.3389, allocations: 1.234 MB / 452.8 MB, free: 24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003317/0.3422, allocations: 1.917 MB / 454.7 MB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.3422, allocations: 0.6094 kB / 454.7 MB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006483/0.3429, allocations: 141.4 kB / 454.8 MB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005016/0.3434, allocations: 200.4 kB / 455 MB, free: 23.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.3434, allocations: 20.66 kB / 455 MB, free: 23.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005267/0.3487, allocations: 5.345 MB / 460.4 MB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.3487, allocations: 0.5938 kB / 460.4 MB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00321/0.3519, allocations: 1.394 MB / 461.8 MB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000315/0.3522, allocations: 243.7 kB / 462 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.3523, allocations: 22.97 kB / 462 MB, free: 18.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006277/0.353, allocations: 52.28 kB / 462.1 MB, free: 18.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.3532, allocations: 60.88 kB / 462.1 MB, free: 18.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.079e-05/0.3532, allocations: 18.44 kB / 462.2 MB, free: 18.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005119/0.3537, allocations: 455.5 kB / 462.6 MB, free: 18.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3537, allocations: 0 / 462.6 MB, free: 18.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008575/0.3546, allocations: 291.4 kB / 462.9 MB, free: 18.36 MB / 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.003231/0.3578, allocations: 1.974 MB / 464.9 MB, free: 17.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.3599, allocations: 1.314 MB / 466.2 MB, free: 16.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.36, allocations: 2.25 kB / 466.2 MB, free: 16.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.3613, allocations: 0.7421 MB / 466.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.3623, allocations: 238.5 kB / 467.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.3742, allocations: 7.546 MB / 474.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004781/0.3746, allocations: 0.9452 MB / 475.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005511/0.3752, allocations: 102.4 kB / 475.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000367/0.3756, allocations: 299.7 kB / 476 MB, free: 11.12 MB / 366.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3756, allocations: 3.938 kB / 476 MB, free: 11.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09059/0.4662, allocations: 26.09 MB / 0.4904 GB, free: 7.211 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.27, allocations: 20.67 kB / 0.4904 GB, free: 7.195 MB / 382.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.73980678105727]