Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001176/0.001176, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001243, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 61.25 kB / 306.4 MB, free: 0.9766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09123/0.09235, allocations: 50.53 MB / 356.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.004667/0.09705, allocations: 4.403 MB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.09883, allocations: 1.254 MB / 362.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001989/0.09905, allocations: 11.94 kB / 362.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003038/0.09937, allocations: 99.28 kB / 362.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004037/0.09978, allocations: 234.2 kB / 362.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003182/0.1001, allocations: 171.8 kB / 363 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006794/0.1008, allocations: 0.8945 MB / 363.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002781/0.1011, allocations: 225.1 kB / 364.2 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003585/0.1014, allocations: 342.7 kB / 364.5 MB, free: 6.789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003318/0.1018, allocations: 382.3 kB / 364.9 MB, free: 6.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.601e-05/0.1019, allocations: 52 kB / 364.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.102, allocations: 64 kB / 365 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.1021, allocations: 147.4 kB / 365.1 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003096/0.1025, allocations: 398 kB / 365.5 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006422/0.1031, allocations: 0.8914 MB / 366.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1031, allocations: 0 / 366.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.92e-07/0.1031, allocations: 0 / 366.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.1031, allocations: 4 kB / 366.4 MB, free: 4.867 MB / 302.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.001733/0.1049, allocations: 1.102 MB / 367.5 MB, free: 3.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1049, allocations: 8.031 kB / 367.5 MB, free: 3.695 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001284/0.1051, allocations: 95.61 kB / 367.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002201/0.1053, allocations: 91.98 kB / 367.7 MB, free: 3.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005621/0.1059, allocations: 488.6 kB / 368.2 MB, free: 2.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.106, allocations: 96.95 kB / 368.3 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.719e-05/0.1061, allocations: 48.38 kB / 368.3 MB, free: 2.832 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.1071, allocations: 0.6631 MB / 369 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.1071, allocations: 0 / 369 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.84e-05/0.1072, allocations: 20 kB / 369 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1072, allocations: 12 kB / 369 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009784/0.1082, allocations: 455.7 kB / 369.5 MB, free: 1.617 MB / 302.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.149/0.2572, allocations: 1.967 MB / 371.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.2591, allocations: 0.6774 MB / 372.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005259/0.2597, allocations: 265.1 kB / 372.4 MB, free: 19.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.519e-05/0.2597, allocations: 11.72 kB / 372.4 MB, free: 19.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.2598, allocations: 49.91 kB / 372.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.405e-06/0.2598, allocations: 1.188 kB / 372.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.004816/0.2646, allocations: 1.478 MB / 373.9 MB, free: 19.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.942e-05/0.2647, allocations: 0.5675 MB / 374.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000704/0.2654, allocations: 0.542 MB / 375 MB, free: 18.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.582e-05/0.2655, allocations: 39.2 kB / 375 MB, free: 18.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/0.2657, allocations: 284.8 kB / 375.3 MB, free: 17.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.2658, allocations: 186.6 kB / 375.5 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.266, allocations: 114.9 kB / 375.6 MB, free: 17.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.2662, allocations: 371.8 kB / 376 MB, free: 17.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000512/0.2667, allocations: 196.3 kB / 376.2 MB, free: 17.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006627/0.2674, allocations: 416.6 kB / 376.6 MB, free: 17.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008972/0.2683, allocations: 496.6 kB / 377.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2683, allocations: 0 / 377.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002242/0.2705, allocations: 0.8089 MB / 377.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.844e-05/0.2706, allocations: 33.38 kB / 377.9 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.2706, allocations: 0 / 377.9 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000996/0.2716, allocations: 222.1 kB / 378.1 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006726/0.2723, allocations: 124.3 kB / 378.2 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005894/0.2782, allocations: 5.152 MB / 383.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006121/0.2788, allocations: 83.22 kB / 383.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/0.2789, allocations: 20.3 kB / 383.5 MB, free: 11.82 MB / 302.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.000241/0.2791, allocations: 198.1 kB / 383.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.2792, allocations: 71.44 kB / 383.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002163/0.2814, allocations: 0.7766 MB / 384.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.2814, allocations: 14.09 kB / 384.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.2814, allocations: 1.25 kB / 384.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00197/0.2834, allocations: 1.036 MB / 385.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.2864, allocations: 1.505 MB / 387.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2864, allocations: 0 / 387.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007345/0.2871, allocations: 131.5 kB / 387.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008069/0.2879, allocations: 172.1 kB / 387.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.288, allocations: 13.23 kB / 387.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004042/0.292, allocations: 3.491 MB / 390.9 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2921, allocations: 1.125 kB / 390.9 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00257/0.2946, allocations: 1.066 MB / 392 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002285/0.2949, allocations: 203.3 kB / 392.2 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.347e-05/0.295, allocations: 16.72 kB / 392.2 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.2954, allocations: 43.94 kB / 392.2 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.2956, allocations: 37.34 kB / 392.3 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.2956, allocations: 17.72 kB / 392.3 MB, free: 6.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003917/0.296, allocations: 386.4 kB / 392.7 MB, free: 5.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.296, allocations: 3.828 kB / 392.7 MB, free: 5.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007627/0.2968, allocations: 223.3 kB / 392.9 MB, free: 5.824 MB / 302.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.002747/0.2995, allocations: 1.621 MB / 394.5 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002016/0.3015, allocations: 1.02 MB / 395.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3016, allocations: 5.281 kB / 395.5 MB, free: 4.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008631/0.3024, allocations: 0.5357 MB / 396.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000792/0.3032, allocations: 168.2 kB / 396.2 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009449/0.3127, allocations: 6.532 MB / 402.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.3131, allocations: 0.8938 MB / 403.6 MB, free: 14.67 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003906/0.3135, allocations: 84.36 kB / 403.7 MB, free: 14.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002904/0.3138, allocations: 226.6 kB / 403.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3138, allocations: 0 / 403.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03152/0.3454, allocations: 18.78 MB / 422.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/0.3456, allocations: 231.4 kB / 423 MB, free: 12.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.18/2.526, allocations: 0 / 423 MB, free: 12.02 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches