Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.001772/0.001772, allocations: 124.1 kB / 17.79 MB, free: 5.25 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.0019/0.0019, allocations: 198.8 kB / 20.73 MB, free: 2.309 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.443/1.443, allocations: 225.6 MB / 249.1 MB, free: 3.594 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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 51.92 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1019, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005924/0.1078, allocations: 4.396 MB / 422.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002434/0.1102, allocations: 1.207 MB / 423.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003743/0.1106, allocations: 11.94 kB / 423.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004261/0.111, allocations: 138.8 kB / 423.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006209/0.1117, allocations: 269.8 kB / 423.8 MB, free: 6.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.1121, allocations: 195.7 kB / 424 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001073/0.1132, allocations: 0.918 MB / 424.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.1135, allocations: 176.5 kB / 425.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000505/0.114, allocations: 378.6 kB / 425.4 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005022/0.1145, allocations: 406.4 kB / 425.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.1146, allocations: 79.94 kB / 425.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.1148, allocations: 76 kB / 426 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.1149, allocations: 167.4 kB / 426.2 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004108/0.1153, allocations: 418.1 kB / 426.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.1164, allocations: 0.9221 MB / 427.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1164, allocations: 0 / 427.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1164, allocations: 0 / 427.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.827e-05/0.1164, allocations: 0 / 427.5 MB, free: 2.84 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002182/0.1186, allocations: 1.136 MB / 428.6 MB, free: 1.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.657e-05/0.1187, allocations: 12.03 kB / 428.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001677/0.1188, allocations: 99.66 kB / 428.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.119, allocations: 92.42 kB / 428.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008223/0.1198, allocations: 485.1 kB / 429.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.12, allocations: 105 kB / 429.4 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.892e-05/0.1201, allocations: 48.38 kB / 429.4 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.1213, allocations: 0.6553 MB / 430.1 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.1213, allocations: 3.953 kB / 430.1 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.226e-05/0.1214, allocations: 24 kB / 430.1 MB, free: 0 / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.6e-05/0.1214, allocations: 12.05 kB / 430.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.1226, allocations: 455.6 kB / 430.6 MB, free: 15.54 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.00338/0.126, allocations: 1.971 MB / 432.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00203/0.128, allocations: 0.6446 MB / 433.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005885/0.1286, allocations: 240.1 kB / 433.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.995e-05/0.1286, allocations: 12.44 kB / 433.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.1287, allocations: 39 kB / 433.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=54): time 2.545e-06/0.1287, allocations: 0 / 433.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=54): time 0.005422/0.1341, allocations: 1.488 MB / 435 MB, free: 10.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003431/0.1344, allocations: 0.5682 MB / 435.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007621/0.1352, allocations: 0.5342 MB / 436.1 MB, free: 9.668 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.62e-05/0.1353, allocations: 37.7 kB / 436.1 MB, free: 9.625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002664/0.1356, allocations: 297.1 kB / 436.4 MB, free: 9.324 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002026/0.1358, allocations: 202.2 kB / 436.6 MB, free: 9.125 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.136, allocations: 110.2 kB / 436.7 MB, free: 9.008 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.1362, allocations: 374.7 kB / 437.1 MB, free: 8.633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005315/0.1367, allocations: 193 kB / 437.3 MB, free: 8.445 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008311/0.1375, allocations: 413 kB / 437.7 MB, free: 7.965 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.1387, allocations: 492.5 kB / 438.1 MB, free: 7.469 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1387, allocations: 0 / 438.1 MB, free: 7.469 MB / 366.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002433/0.1411, allocations: 0.8071 MB / 439 MB, free: 6.637 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.649e-05/0.1412, allocations: 29.7 kB / 439 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.1412, allocations: 4 kB / 439 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.1422, allocations: 222.4 kB / 439.2 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007688/0.143, allocations: 131.8 kB / 439.3 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008377/0.1514, allocations: 5.61 MB / 444.9 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007944/0.1522, allocations: 87.58 kB / 445 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.604e-05/0.1522, allocations: 16 kB / 445 MB, free: 124 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.205/0.3572, allocations: 186.8 kB / 445.2 MB, free: 29.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002288/0.3574, allocations: 72.22 kB / 445.3 MB, free: 29.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002453/0.3599, allocations: 0.7783 MB / 446.1 MB, free: 29.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.3599, allocations: 7.406 kB / 446.1 MB, free: 29.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3599, allocations: 0 / 446.1 MB, free: 29.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002051/0.3619, allocations: 1.032 MB / 447.1 MB, free: 29.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/0.3651, allocations: 1.492 MB / 448.6 MB, free: 28.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.3651, allocations: 1.75 kB / 448.6 MB, free: 28.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007699/0.3659, allocations: 136.2 kB / 448.7 MB, free: 28.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008417/0.3667, allocations: 173.2 kB / 448.9 MB, free: 28.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.3668, allocations: 13.08 kB / 448.9 MB, free: 28.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004619/0.3714, allocations: 3.794 MB / 452.7 MB, free: 25.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3714, allocations: 4.812 kB / 452.7 MB, free: 25.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002874/0.3743, allocations: 1.065 MB / 453.8 MB, free: 25.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003184/0.3746, allocations: 213.2 kB / 454 MB, free: 25.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.041e-05/0.3747, allocations: 16.97 kB / 454 MB, free: 25.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005116/0.3752, allocations: 37.47 kB / 454 MB, free: 25.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.3753, allocations: 44.84 kB / 454.1 MB, free: 25.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/0.3754, allocations: 15.22 kB / 454.1 MB, free: 25.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004571/0.3758, allocations: 384.7 kB / 454.5 MB, free: 25.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3758, allocations: 2.625 kB / 454.5 MB, free: 25.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000755/0.3766, allocations: 223.2 kB / 454.7 MB, free: 25.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * 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 (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003312/0.3799, allocations: 1.636 MB / 456.3 MB, free: 24.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.3823, allocations: 1.01 MB / 457.4 MB, free: 24.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/0.3824, allocations: 2.219 kB / 457.4 MB, free: 24.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009874/0.3833, allocations: 0.515 MB / 457.9 MB, free: 23.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009437/0.3843, allocations: 184.9 kB / 458 MB, free: 23.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/0.3948, allocations: 6.052 MB / 464.1 MB, free: 20.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003807/0.3952, allocations: 0.8908 MB / 465 MB, free: 20 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004245/0.3956, allocations: 79.67 kB / 465.1 MB, free: 19.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002931/0.3959, allocations: 233.8 kB / 465.3 MB, free: 19.82 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3959, allocations: 0 / 465.3 MB, free: 19.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06066/0.4566, allocations: 20.31 MB / 485.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/14.04, allocations: 12.03 kB / 485.6 MB, free: 8.582 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable heatCapacitor.T in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv. Warning: Get data of variable heatCapacitor.T from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv failed! Error: Could not read variable pipe.T in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv. Warning: Get data of variable pipe.T from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv failed! Error: Could not read variable speed.phi in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv. Warning: Get data of variable speed.phi from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.594952347222716]