Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.001221/0.001221, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001383/0.001383, allocations: 211.5 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.385/1.385, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.PumpAndValve,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 59.91 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2471, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005556/0.2527, allocations: 3.962 MB / 435 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.2549, allocations: 1.195 MB / 436.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002169/0.2551, allocations: 11.94 kB / 436.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000359/0.2555, allocations: 130.8 kB / 436.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005676/0.256, allocations: 273.8 kB / 436.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004638/0.2565, allocations: 191.7 kB / 436.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001049/0.2575, allocations: 0.9297 MB / 437.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002879/0.2578, allocations: 169.1 kB / 437.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004843/0.2583, allocations: 390.6 kB / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005088/0.2588, allocations: 406.3 kB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.2589, allocations: 76 kB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001483/0.2591, allocations: 80 kB / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.2592, allocations: 175.4 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003735/0.2596, allocations: 350.5 kB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009854/0.2606, allocations: 0.9338 MB / 440.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2606, allocations: 0 / 440.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2606, allocations: 0 / 440.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.2606, allocations: 0 / 440.3 MB, free: 13.38 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.2627, allocations: 1.061 MB / 441.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.2627, allocations: 8.031 kB / 441.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001498/0.2629, allocations: 95.7 kB / 441.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002414/0.2631, allocations: 96.41 kB / 441.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007687/0.2639, allocations: 431.2 kB / 442 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.2641, allocations: 156.3 kB / 442.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.914e-05/0.2642, allocations: 48.33 kB / 442.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.2657, allocations: 1.165 MB / 443.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.2657, allocations: 3.984 kB / 443.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-05/0.2657, allocations: 20 kB / 443.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.2657, allocations: 12 kB / 443.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.2668, allocations: 455.6 kB / 443.8 MB, free: 9.559 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.003038/0.2699, allocations: 1.561 MB / 445.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001964/0.2718, allocations: 0.5728 MB / 446 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005795/0.2724, allocations: 238 kB / 446.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.98e-05/0.2725, allocations: 12.38 kB / 446.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.2725, allocations: 47 kB / 446.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.654e-06/0.2725, allocations: 0 / 446.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.00525/0.2777, allocations: 1.238 MB / 447.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003116/0.2781, allocations: 0.5682 MB / 448.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006538/0.2787, allocations: 0.5421 MB / 448.6 MB, free: 4.527 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.543e-05/0.2788, allocations: 37.7 kB / 448.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002507/0.279, allocations: 305 kB / 448.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.2792, allocations: 190.3 kB / 449.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.2794, allocations: 114.3 kB / 449.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.2796, allocations: 374.7 kB / 449.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005449/0.2801, allocations: 218.9 kB / 449.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.2811, allocations: 0.9636 MB / 450.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.2822, allocations: 491.5 kB / 451.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.2822, allocations: 7.938 kB / 451.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002434/0.2846, allocations: 0.8268 MB / 452.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/0.2847, allocations: 29.7 kB / 452.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.2847, allocations: 4 kB / 452.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.2858, allocations: 218.4 kB / 452.3 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007622/0.2866, allocations: 127.8 kB / 452.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007989/0.2945, allocations: 5.262 MB / 457.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006776/0.2952, allocations: 75.62 kB / 457.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.283e-05/0.2953, allocations: 16 kB / 457.8 MB, free: 10.66 MB / 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.0002999/0.2956, allocations: 189.8 kB / 458 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.2957, allocations: 75.53 kB / 458.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/0.2981, allocations: 0.7759 MB / 458.9 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.2981, allocations: 7.938 kB / 458.9 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.2981, allocations: 3.938 kB / 458.9 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002347/0.3005, allocations: 1.041 MB / 459.9 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00326/0.3037, allocations: 1.355 MB / 461.3 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.3037, allocations: 0 / 461.3 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000814/0.3045, allocations: 131.8 kB / 461.4 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009254/0.3055, allocations: 173.5 kB / 461.6 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.659e-05/0.3055, allocations: 12 kB / 461.6 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005537/0.311, allocations: 3.577 MB / 465.1 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3111, allocations: 8.062 kB / 465.2 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002911/0.314, allocations: 1.053 MB / 466.2 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000311/0.3143, allocations: 131.4 kB / 466.3 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.609e-05/0.3144, allocations: 16 kB / 466.3 MB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005162/0.3149, allocations: 35.91 kB / 466.4 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.315, allocations: 52.34 kB / 466.4 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/0.315, allocations: 12 kB / 466.4 MB, free: 1.566 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004791/0.3155, allocations: 386.8 kB / 466.8 MB, free: 1.191 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3155, allocations: 0 / 466.8 MB, free: 1.191 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007242/0.3162, allocations: 219.8 kB / 467 MB, free: 0.9766 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.003247/0.3195, allocations: 1.629 MB / 468.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.3219, allocations: 1.038 MB / 469.7 MB, free: 14.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.3219, allocations: 7.938 kB / 469.7 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.323, allocations: 0.5156 MB / 470.2 MB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008769/0.3239, allocations: 182.5 kB / 470.4 MB, free: 13.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01137/0.3353, allocations: 6.151 MB / 476.6 MB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.3356, allocations: 293.9 kB / 476.8 MB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003595/0.3359, allocations: 85.11 kB / 476.9 MB, free: 6.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003382/0.3363, allocations: 231.4 kB / 477.2 MB, free: 6.562 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3363, allocations: 0 / 477.2 MB, free: 6.562 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06318/0.3995, allocations: 22.24 MB / 499.4 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/12.98, allocations: 8 kB / 499.4 MB, free: 0.7227 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.342881813005079]