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.001311/0.001311, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001423/0.001423, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.413/1.413, allocations: 225.6 MB / 252.5 MB, free: 13.05 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.001581/0.001581, allocations: 51.91 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2301, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006594/0.2367, allocations: 5.077 MB / 427.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002373/0.239, allocations: 1.297 MB / 429 MB, free: 8.215 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002577/0.2393, allocations: 15.88 kB / 429 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004096/0.2397, allocations: 166.6 kB / 429.2 MB, free: 8.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006119/0.2403, allocations: 337.2 kB / 429.5 MB, free: 7.703 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004455/0.2408, allocations: 223.6 kB / 429.7 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001302/0.2421, allocations: 1.183 MB / 430.9 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003652/0.2424, allocations: 219.5 kB / 431.1 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005251/0.243, allocations: 466.3 kB / 431.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006421/0.2436, allocations: 0.5097 MB / 432.1 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.2437, allocations: 104 kB / 432.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.2439, allocations: 104 kB / 432.3 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001969/0.2441, allocations: 223.2 kB / 432.5 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005184/0.2446, allocations: 0.5211 MB / 433 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001266/0.2459, allocations: 1.209 MB / 434.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2459, allocations: 8 kB / 434.3 MB, free: 2.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2459, allocations: 0 / 434.3 MB, free: 2.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.751e-05/0.2459, allocations: 0 / 434.3 MB, free: 2.934 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.002521/0.2484, allocations: 1.292 MB / 435.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.2485, allocations: 12.03 kB / 435.6 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001822/0.2487, allocations: 116 kB / 435.7 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.2489, allocations: 112.3 kB / 435.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.2499, allocations: 0.535 MB / 436.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003095/0.2502, allocations: 305.2 kB / 436.6 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.2503, allocations: 63.94 kB / 436.7 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.2519, allocations: 0.8587 MB / 437.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.2519, allocations: 0 / 437.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.805e-05/0.252, allocations: 28 kB / 437.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.252, allocations: 16 kB / 437.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.2534, allocations: 0.6063 MB / 438.2 MB, free: 14.75 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.003463/0.2569, allocations: 2.046 MB / 440.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.2582, allocations: 0.5856 MB / 440.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008258/0.259, allocations: 367.4 kB / 441.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.162e-05/0.259, allocations: 16.58 kB / 441.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.2591, allocations: 55.2 kB / 441.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.094e-06/0.2591, allocations: 0 / 441.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004956/0.264, allocations: 1.484 MB / 442.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004491/0.2645, allocations: 0.8273 MB / 443.6 MB, free: 9.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008211/0.2653, allocations: 0.6332 MB / 444.2 MB, free: 8.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.177e-05/0.2654, allocations: 45.7 kB / 444.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003182/0.2657, allocations: 353.2 kB / 444.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002466/0.266, allocations: 265.7 kB / 444.8 MB, free: 7.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.2662, allocations: 146.6 kB / 445 MB, free: 7.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.2664, allocations: 382.8 kB / 445.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006636/0.2671, allocations: 273.8 kB / 445.6 MB, free: 6.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009626/0.268, allocations: 0.5507 MB / 446.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.2694, allocations: 0.6817 MB / 446.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2695, allocations: 0 / 446.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002649/0.2721, allocations: 1.087 MB / 447.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.489e-05/0.2722, allocations: 93.09 kB / 448 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.2722, allocations: 0 / 448 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007403/0.2729, allocations: 231.3 kB / 448.3 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006314/0.2736, allocations: 139.8 kB / 448.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008112/0.2817, allocations: 6.522 MB / 454.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008274/0.2825, allocations: 103.5 kB / 455 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.963e-05/0.2826, allocations: 20 kB / 455 MB, free: 12.88 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.000355/0.2829, allocations: 217.9 kB / 455.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.2831, allocations: 95.42 kB / 455.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001815/0.2832, allocations: 95.33 kB / 455.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.2833, allocations: 11.94 kB / 455.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.2833, allocations: 7.938 kB / 455.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002553/0.2858, allocations: 1.233 MB / 456.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003895/0.2897, allocations: 1.892 MB / 458.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2897, allocations: 0 / 458.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006953/0.2904, allocations: 139.8 kB / 458.7 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005616/0.291, allocations: 202.5 kB / 458.9 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.138e-05/0.291, allocations: 19.92 kB / 458.9 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006787/0.2978, allocations: 5.039 MB / 464 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2978, allocations: 0 / 464 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003325/0.3011, allocations: 1.396 MB / 465.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003868/0.3015, allocations: 167.2 kB / 465.5 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.3016, allocations: 20 kB / 465.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006316/0.3023, allocations: 51.95 kB / 465.6 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.3024, allocations: 64.53 kB / 465.7 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.234e-05/0.3025, allocations: 19.98 kB / 465.7 MB, free: 1.668 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005946/0.3031, allocations: 459 kB / 466.1 MB, free: 1.223 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3031, allocations: 0 / 466.1 MB, free: 1.223 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000854/0.3039, allocations: 287.7 kB / 466.4 MB, free: 0.9414 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.003702/0.3076, allocations: 1.959 MB / 468.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00241/0.31, allocations: 1.313 MB / 469.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.31, allocations: 4.125 kB / 469.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.3114, allocations: 0.7455 MB / 470.4 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.3125, allocations: 242.6 kB / 470.7 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.3259, allocations: 7.535 MB / 478.2 MB, free: 4.801 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006259/0.3265, allocations: 0.9479 MB / 479.2 MB, free: 3.828 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004456/0.3269, allocations: 102.4 kB / 479.3 MB, free: 3.723 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004314/0.3274, allocations: 299.3 kB / 479.5 MB, free: 3.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3274, allocations: 0 / 479.5 MB, free: 3.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07582/0.4032, allocations: 26.6 MB / 0.4943 GB, free: 9.238 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.08/14.49, allocations: 11.48 kB / 0.4943 GB, free: 9.23 MB / 414.1 MB " [Timeout remaining time 645] (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.964966518000438]