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.0009197/0.0009197, allocations: 76.08 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.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.0008422/0.0008422, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.896/0.896, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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 1.312e-06/1.312e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.445e-05/1.576e-05, allocations: 13.45 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.003641/0.003657, allocations: 4.499 MB / 322.9 MB, free: 1.82 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.005481, allocations: 1.254 MB / 324.2 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002593/0.005741, allocations: 11.94 kB / 324.2 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.006077, allocations: 166.5 kB / 324.4 MB, free: 396 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004503/0.006527, allocations: 356.9 kB / 324.7 MB, free: 36 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.006901, allocations: 227.6 kB / 324.9 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009533/0.007854, allocations: 1.218 MB / 326.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003498/0.008204, allocations: 214.5 kB / 326.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006048/0.008808, allocations: 0.6821 MB / 327 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003655/0.009174, allocations: 371 kB / 327.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.009278, allocations: 108 kB / 327.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.009381, allocations: 107.9 kB / 327.6 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.009497, allocations: 235.2 kB / 327.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004104/0.009907, allocations: 383.2 kB / 328.2 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008146/0.01072, allocations: 1.25 MB / 329.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.01072, allocations: 0 / 329.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01073, allocations: 0 / 329.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.01074, allocations: 0 / 329.5 MB, free: 11.25 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.001542/0.01228, allocations: 1.287 MB / 330.8 MB, free: 9.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.01232, allocations: 12.92 kB / 330.8 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001333/0.01245, allocations: 123.9 kB / 330.9 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.01259, allocations: 112.3 kB / 331 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006517/0.01324, allocations: 0.5344 MB / 331.5 MB, free: 9.098 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004476/0.01368, allocations: 297.2 kB / 331.8 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-05/0.01376, allocations: 64.36 kB / 331.9 MB, free: 8.691 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.01488, allocations: 1.632 MB / 333.5 MB, free: 6.773 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.0149, allocations: 0 / 333.5 MB, free: 6.773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.471e-05/0.01495, allocations: 32 kB / 333.5 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.01496, allocations: 19.94 kB / 333.6 MB, free: 6.723 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008386/0.0158, allocations: 0.5985 MB / 334.2 MB, free: 6.125 MB / 298.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.00202/0.01782, allocations: 1.635 MB / 335.8 MB, free: 4.441 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00077/0.01859, allocations: 0.5756 MB / 336.4 MB, free: 3.852 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004656/0.01905, allocations: 358.5 kB / 336.7 MB, free: 3.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.921e-05/0.01909, allocations: 12.66 kB / 336.7 MB, free: 3.488 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.01912, allocations: 55.2 kB / 336.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of pre-optimization done (n=73): time 1.883e-06/0.01912, allocations: 4 kB / 336.8 MB, free: 3.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.002706/0.02182, allocations: 1.484 MB / 338.3 MB, free: 1.918 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000537/0.02236, allocations: 0.8273 MB / 339.1 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005244/0.02289, allocations: 0.6254 MB / 339.7 MB, free: 264 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.809e-05/0.02293, allocations: 41.7 kB / 339.8 MB, free: 216 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.02312, allocations: 349.3 kB / 340.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.02326, allocations: 265.7 kB / 340.4 MB, free: 15.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/0.02344, allocations: 142.6 kB / 340.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.02358, allocations: 398.6 kB / 340.9 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004635/0.02405, allocations: 355 kB / 341.3 MB, free: 14.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008242/0.02487, allocations: 1.387 MB / 342.6 MB, free: 13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008289/0.0257, allocations: 0.6817 MB / 343.3 MB, free: 12.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.0257, allocations: 0 / 343.3 MB, free: 12.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001731/0.02743, allocations: 1.17 MB / 344.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.213e-05/0.02751, allocations: 88.08 kB / 344.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.02752, allocations: 0 / 344.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005069/0.02802, allocations: 231.3 kB / 344.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/0.02844, allocations: 143.8 kB / 344.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005617/0.03406, allocations: 6.483 MB / 351.4 MB, free: 3.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007303/0.03479, allocations: 103.6 kB / 351.5 MB, free: 3.543 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.03483, allocations: 27.98 kB / 351.6 MB, free: 3.516 MB / 314.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.0002715/0.0351, allocations: 217.7 kB / 351.8 MB, free: 3.293 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.03521, allocations: 91.48 kB / 351.9 MB, free: 3.203 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.03531, allocations: 83.34 kB / 351.9 MB, free: 3.113 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.03532, allocations: 11.98 kB / 351.9 MB, free: 3.102 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.03533, allocations: 3.938 kB / 352 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001468/0.03679, allocations: 1.229 MB / 353.2 MB, free: 1.754 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00245/0.03924, allocations: 1.736 MB / 354.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.03925, allocations: 0 / 354.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003581/0.03961, allocations: 139.8 kB / 355.1 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003172/0.03992, allocations: 206.4 kB / 355.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.357e-05/0.03996, allocations: 12 kB / 355.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003911/0.04387, allocations: 4.996 MB / 360.3 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.04387, allocations: 0 / 360.3 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/0.04597, allocations: 1.396 MB / 361.7 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003127/0.04628, allocations: 159.3 kB / 361.8 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.915e-05/0.04635, allocations: 23.98 kB / 361.8 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000351/0.0467, allocations: 47.95 kB / 361.9 MB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.04685, allocations: 64.53 kB / 361.9 MB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.04688, allocations: 16 kB / 362 MB, free: 8.539 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004025/0.04728, allocations: 463 kB / 362.4 MB, free: 8.094 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04728, allocations: 4 kB / 362.4 MB, free: 8.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006714/0.04795, allocations: 287.7 kB / 362.7 MB, free: 7.809 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.002428/0.05038, allocations: 1.963 MB / 364.7 MB, free: 5.805 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.05195, allocations: 1.403 MB / 366.1 MB, free: 4.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.05195, allocations: 4 kB / 366.1 MB, free: 4.289 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008235/0.05278, allocations: 0.7456 MB / 366.8 MB, free: 3.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007601/0.05354, allocations: 239.1 kB / 367 MB, free: 3.266 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00941/0.06295, allocations: 7.803 MB / 374.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.06322, allocations: 354 kB / 375.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003832/0.06361, allocations: 102.4 kB / 375.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.06391, allocations: 300.4 kB / 375.6 MB, free: 10.44 MB / 346.7 MB Notification: Performance of SimCode: time 2.164e-06/0.06392, allocations: 0 / 375.6 MB, free: 10.44 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04731/0.1112, allocations: 28.3 MB / 403.9 MB, free: 14.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.449/8.561, allocations: 0 / 403.9 MB, free: 14.57 MB / 378.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins/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: 10.34081806987524]