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.0007691/0.0007691, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008258/0.0008258, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9194/0.9194, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] 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 1.653e-06/1.653e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.129e-05/1.294e-05, allocations: 6.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004307/0.00432, allocations: 4.536 MB / 329.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.006423, allocations: 1.285 MB / 330.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000268/0.006691, allocations: 11.94 kB / 330.4 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003239/0.007015, allocations: 162.5 kB / 330.6 MB, free: 9.914 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004818/0.007496, allocations: 352.9 kB / 330.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003939/0.00789, allocations: 231.6 kB / 331.1 MB, free: 9.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009727/0.008863, allocations: 1.226 MB / 332.3 MB, free: 8.109 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002964/0.009159, allocations: 210.5 kB / 332.6 MB, free: 7.895 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006291/0.009789, allocations: 0.6783 MB / 333.2 MB, free: 7.215 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003648/0.01015, allocations: 379 kB / 333.6 MB, free: 6.844 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.01026, allocations: 107.9 kB / 333.7 MB, free: 6.738 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.01036, allocations: 108 kB / 333.8 MB, free: 6.633 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.01047, allocations: 227.2 kB / 334 MB, free: 6.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00026/0.01074, allocations: 383.2 kB / 334.4 MB, free: 6.035 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008685/0.0116, allocations: 1.254 MB / 335.7 MB, free: 4.777 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.01161, allocations: 0 / 335.7 MB, free: 4.777 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.01161, allocations: 4 kB / 335.7 MB, free: 4.773 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.044e-05/0.01163, allocations: 0 / 335.7 MB, free: 4.773 MB / 298.7 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.001647/0.01327, allocations: 1.283 MB / 336.9 MB, free: 3.438 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.01332, allocations: 8.031 kB / 337 MB, free: 3.43 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004178/0.01373, allocations: 127.8 kB / 337.1 MB, free: 3.297 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.01389, allocations: 116.3 kB / 337.2 MB, free: 3.184 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007261/0.01462, allocations: 0.5382 MB / 337.7 MB, free: 2.621 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.01479, allocations: 297.2 kB / 338 MB, free: 2.273 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.976e-05/0.01486, allocations: 60.38 kB / 338.1 MB, free: 2.215 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.01605, allocations: 1.62 MB / 339.7 MB, free: 312 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.01607, allocations: 4 kB / 339.7 MB, free: 308 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.594e-05/0.01612, allocations: 28 kB / 339.7 MB, free: 280 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.01613, allocations: 12 kB / 339.7 MB, free: 268 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008966/0.01702, allocations: 0.6063 MB / 340.4 MB, free: 15.65 MB / 314.7 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.002335/0.01936, allocations: 1.639 MB / 342 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008563/0.02021, allocations: 0.5826 MB / 342.6 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/0.02068, allocations: 359.8 kB / 342.9 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.923e-05/0.02072, allocations: 12.64 kB / 342.9 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.02074, allocations: 51.16 kB / 343 MB, free: 12.95 MB / 314.7 MB Notification: Performance of pre-optimization done (n=73): time 1.653e-06/0.02074, allocations: 0 / 343 MB, free: 12.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=73): time 0.002859/0.0236, allocations: 1.488 MB / 344.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002678/0.02387, allocations: 0.8234 MB / 345.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005168/0.02439, allocations: 0.6293 MB / 345.9 MB, free: 9.777 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.314e-05/0.02444, allocations: 49.7 kB / 346 MB, free: 9.723 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.02463, allocations: 349.2 kB / 346.3 MB, free: 9.375 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.02477, allocations: 261.7 kB / 346.6 MB, free: 9.117 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.02491, allocations: 142.7 kB / 346.7 MB, free: 8.973 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.02504, allocations: 390.7 kB / 347.1 MB, free: 8.582 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007202/0.02576, allocations: 351 kB / 347.4 MB, free: 8.219 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007832/0.02654, allocations: 1.391 MB / 348.8 MB, free: 6.527 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008398/0.02738, allocations: 0.6817 MB / 349.5 MB, free: 5.816 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.02739, allocations: 0 / 349.5 MB, free: 5.816 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001557/0.02895, allocations: 1.17 MB / 350.7 MB, free: 4.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.535e-05/0.029, allocations: 85.11 kB / 350.8 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.02901, allocations: 0 / 350.8 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004511/0.02946, allocations: 243.2 kB / 351 MB, free: 4.238 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000316/0.02978, allocations: 139.8 kB / 351.1 MB, free: 4.102 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005029/0.0348, allocations: 6.468 MB / 357.6 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004008/0.03521, allocations: 99.52 kB / 357.7 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.875e-05/0.03524, allocations: 20 kB / 357.7 MB, free: 13.05 MB / 330.7 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.0002376/0.03548, allocations: 221.7 kB / 357.9 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.633e-05/0.03557, allocations: 87.48 kB / 358 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.375e-05/0.03566, allocations: 99.33 kB / 358.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.03567, allocations: 8 kB / 358.1 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.03567, allocations: 11.81 kB / 358.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001359/0.03703, allocations: 1.225 MB / 359.4 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.03919, allocations: 1.732 MB / 361.1 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.03919, allocations: 8 kB / 361.1 MB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000622/0.03981, allocations: 135.8 kB / 361.2 MB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003122/0.04012, allocations: 202.4 kB / 361.4 MB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.04015, allocations: 12 kB / 361.4 MB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003683/0.04384, allocations: 5.008 MB / 366.5 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.04384, allocations: 4.031 kB / 366.5 MB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.04566, allocations: 1.392 MB / 367.9 MB, free: 2.359 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002218/0.04589, allocations: 171.2 kB / 368 MB, free: 2.191 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.04595, allocations: 16 kB / 368 MB, free: 2.176 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/0.04626, allocations: 51.95 kB / 368.1 MB, free: 2.125 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.04639, allocations: 68.53 kB / 368.2 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.04641, allocations: 16 kB / 368.2 MB, free: 2.043 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000659/0.04707, allocations: 455 kB / 368.6 MB, free: 1.605 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04707, allocations: 0 / 368.6 MB, free: 1.605 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006077/0.04768, allocations: 287.7 kB / 368.9 MB, free: 1.324 MB / 330.7 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.002034/0.04972, allocations: 1.959 MB / 370.9 MB, free: 15.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001356/0.05107, allocations: 1.4 MB / 372.3 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.05107, allocations: 0 / 372.3 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007557/0.05183, allocations: 0.7534 MB / 373 MB, free: 13.03 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006432/0.05247, allocations: 245.6 kB / 373.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00826/0.06073, allocations: 7.803 MB / 381 MB, free: 4.742 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.06097, allocations: 354.2 kB / 381.4 MB, free: 4.367 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.06124, allocations: 98.42 kB / 381.5 MB, free: 4.266 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002768/0.06152, allocations: 308.4 kB / 381.8 MB, free: 3.965 MB / 346.7 MB Notification: Performance of SimCode: time 6.11e-07/0.06152, allocations: 0 / 381.8 MB, free: 3.965 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0414/0.1029, allocations: 28.3 MB / 410.1 MB, free: 8.098 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.388/8.49, allocations: 6.984 kB / 410.1 MB, free: 8.094 MB / 378.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins/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: 10.266166663728654]