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.001643/0.001643, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001909/0.001909, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.333/1.333, allocations: 225.6 MB / 249.1 MB, free: 3.625 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.001469/0.001469, allocations: 51.92 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09269/0.09416, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005425/0.09959, allocations: 4.396 MB / 422.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.1017, allocations: 1.215 MB / 423.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002187/0.1019, allocations: 11.94 kB / 423.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003579/0.1023, allocations: 130.8 kB / 423.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005049/0.1028, allocations: 269.8 kB / 423.8 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003938/0.1032, allocations: 199.7 kB / 424 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009548/0.1041, allocations: 0.9297 MB / 424.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.1044, allocations: 168.6 kB / 425.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004035/0.1048, allocations: 366.6 kB / 425.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004498/0.1053, allocations: 402.3 kB / 425.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.1054, allocations: 76 kB / 425.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.1055, allocations: 76 kB / 426 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.1056, allocations: 171.4 kB / 426.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003873/0.106, allocations: 422 kB / 426.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000958/0.107, allocations: 0.9182 MB / 427.5 MB, free: 2.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.107, allocations: 4 kB / 427.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.107, allocations: 7.938 kB / 427.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.107, allocations: 0 / 427.5 MB, free: 2.867 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.002062/0.1091, allocations: 1.128 MB / 428.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1091, allocations: 8.031 kB / 428.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001391/0.1092, allocations: 95.66 kB / 428.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.1094, allocations: 88.42 kB / 428.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007582/0.1101, allocations: 497.1 kB / 429.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.1103, allocations: 101 kB / 429.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.787e-05/0.1104, allocations: 52.31 kB / 429.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.1115, allocations: 0.6553 MB / 430.1 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.1115, allocations: 3.953 kB / 430.1 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.109e-05/0.1115, allocations: 23.98 kB / 430.1 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.1115, allocations: 12 kB / 430.1 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.1126, allocations: 459.6 kB / 430.6 MB, free: 15.57 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.003051/0.1157, allocations: 1.964 MB / 432.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.1175, allocations: 0.6479 MB / 433.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005354/0.118, allocations: 234 kB / 433.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.047e-05/0.1181, allocations: 9.078 kB / 433.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.1181, allocations: 50.94 kB / 433.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=54): time 1.743e-06/0.1181, allocations: 0 / 433.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=54): time 0.004913/0.123, allocations: 1.48 MB / 435 MB, free: 10.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003226/0.1234, allocations: 0.5644 MB / 435.5 MB, free: 10.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006604/0.124, allocations: 0.5421 MB / 436.1 MB, free: 9.703 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.828e-05/0.1241, allocations: 37.7 kB / 436.1 MB, free: 9.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002626/0.1243, allocations: 293.1 kB / 436.4 MB, free: 9.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.1245, allocations: 198.2 kB / 436.6 MB, free: 9.168 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.1247, allocations: 118.2 kB / 436.7 MB, free: 9.043 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.1249, allocations: 370.7 kB / 437.1 MB, free: 8.672 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004974/0.1254, allocations: 197 kB / 437.3 MB, free: 8.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006962/0.1261, allocations: 413 kB / 437.7 MB, free: 8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.1272, allocations: 488.6 kB / 438.1 MB, free: 7.508 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1272, allocations: 0 / 438.1 MB, free: 7.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00226/0.1294, allocations: 0.8071 MB / 438.9 MB, free: 6.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.1295, allocations: 33.7 kB / 439 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.1295, allocations: 7.938 kB / 439 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009815/0.1304, allocations: 214.4 kB / 439.2 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006954/0.1311, allocations: 127.8 kB / 439.3 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007931/0.1391, allocations: 5.607 MB / 444.9 MB, free: 272 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000688/0.1398, allocations: 87.58 kB / 445 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/0.1398, allocations: 16 kB / 445 MB, free: 168 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.1725/0.3123, allocations: 185.6 kB / 445.2 MB, free: 29.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001892/0.3125, allocations: 73.28 kB / 445.3 MB, free: 29.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002149/0.3147, allocations: 0.7757 MB / 446.1 MB, free: 29.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.3147, allocations: 9.156 kB / 446.1 MB, free: 29.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.3147, allocations: 0 / 446.1 MB, free: 29.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001867/0.3165, allocations: 1.035 MB / 447.1 MB, free: 29.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002761/0.3193, allocations: 1.492 MB / 448.6 MB, free: 28.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3193, allocations: 3.375 kB / 448.6 MB, free: 28.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007269/0.32, allocations: 130.9 kB / 448.7 MB, free: 28.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008054/0.3208, allocations: 170.9 kB / 448.9 MB, free: 28.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.529e-05/0.3209, allocations: 15.95 kB / 448.9 MB, free: 28.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004282/0.3252, allocations: 3.796 MB / 452.7 MB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3252, allocations: 0.5625 kB / 452.7 MB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.3278, allocations: 1.068 MB / 453.8 MB, free: 25.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003036/0.3281, allocations: 215.9 kB / 454 MB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.579e-05/0.3281, allocations: 16.64 kB / 454 MB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004913/0.3286, allocations: 33.77 kB / 454 MB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.3288, allocations: 46.47 kB / 454.1 MB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/0.3288, allocations: 17.55 kB / 454.1 MB, free: 25.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004401/0.3292, allocations: 384.7 kB / 454.5 MB, free: 25.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3292, allocations: 0 / 454.5 MB, free: 25.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006918/0.3299, allocations: 223.6 kB / 454.7 MB, free: 25.61 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.002981/0.3329, allocations: 1.632 MB / 456.3 MB, free: 24.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.335, allocations: 1.012 MB / 457.3 MB, free: 24.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.335, allocations: 2.125 kB / 457.3 MB, free: 24.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009072/0.3359, allocations: 0.5148 MB / 457.8 MB, free: 23.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008044/0.3367, allocations: 185.4 kB / 458 MB, free: 23.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009272/0.3459, allocations: 6.059 MB / 464.1 MB, free: 20.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.3463, allocations: 0.8905 MB / 465 MB, free: 20.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003485/0.3466, allocations: 81.64 kB / 465.1 MB, free: 20.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002408/0.3468, allocations: 232.5 kB / 465.3 MB, free: 19.89 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3468, allocations: 0 / 465.3 MB, free: 19.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05118/0.398, allocations: 20.32 MB / 485.6 MB, free: 8.613 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.3, allocations: 20.28 kB / 485.6 MB, free: 8.598 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.645102356094867]