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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008332/0.0008331, allocations: 92.48 kB / 16.65 MB, free: 6.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009088/0.0009088, allocations: 177.5 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.149/1.149, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002783/0.0002787, allocations: 11.98 kB / 301.5 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08569/0.08599, allocations: 50.41 MB / 351.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.003559/0.08957, allocations: 3.993 MB / 355.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.09135, allocations: 1.137 MB / 357.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002542/0.09162, allocations: 8 kB / 357.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002494/0.09188, allocations: 111.2 kB / 357.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004802/0.09237, allocations: 238.2 kB / 357.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.09271, allocations: 171.8 kB / 357.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000724/0.09344, allocations: 0.8828 MB / 358.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002622/0.09371, allocations: 217.1 kB / 358.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003021/0.09402, allocations: 330.6 kB / 359 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003349/0.09437, allocations: 370.3 kB / 359.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.535e-05/0.09445, allocations: 52 kB / 359.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.888e-05/0.09454, allocations: 48 kB / 359.5 MB, free: 12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.09465, allocations: 139.4 kB / 359.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003103/0.09497, allocations: 411.8 kB / 360 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006037/0.09558, allocations: 0.8678 MB / 360.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.09559, allocations: 4 kB / 360.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.0956, allocations: 0 / 360.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.09561, allocations: 0 / 360.9 MB, free: 10.58 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.001459/0.09707, allocations: 0.9887 MB / 361.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.727e-05/0.09711, allocations: 12.03 kB / 361.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000131/0.09724, allocations: 91.61 kB / 362 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.09737, allocations: 88 kB / 362.1 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005152/0.09789, allocations: 484.6 kB / 362.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.09802, allocations: 101 kB / 362.6 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.877e-05/0.0981, allocations: 52.28 kB / 362.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009998/0.09911, allocations: 0.6709 MB / 363.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.09913, allocations: 0 / 363.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.09919, allocations: 24 kB / 363.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.0992, allocations: 12 kB / 363.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009953/0.1002, allocations: 495.6 kB / 363.9 MB, free: 7.387 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.002571/0.1028, allocations: 1.99 MB / 365.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.1045, allocations: 0.7184 MB / 366.6 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005382/0.1051, allocations: 278.8 kB / 366.8 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.1051, allocations: 12.42 kB / 366.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.1052, allocations: 46.94 kB / 366.9 MB, free: 4.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.583e-06/0.1052, allocations: 3.938 kB / 366.9 MB, free: 4.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.004704/0.1099, allocations: 1.601 MB / 368.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001943/0.1101, allocations: 0.5644 MB / 369.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005366/0.1106, allocations: 0.5343 MB / 369.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.727e-05/0.1107, allocations: 45.64 kB / 369.6 MB, free: 1.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.1109, allocations: 280.5 kB / 369.9 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.111, allocations: 193.2 kB / 370.1 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.027e-05/0.1111, allocations: 53.62 kB / 370.2 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1112, allocations: 374.7 kB / 370.5 MB, free: 316 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004788/0.1117, allocations: 205 kB / 370.7 MB, free: 112 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1232/0.2349, allocations: 422.6 kB / 371.1 MB, free: 23.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.2361, allocations: 0.5141 MB / 371.7 MB, free: 23.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.2361, allocations: 1.094 kB / 371.7 MB, free: 23.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002255/0.2383, allocations: 0.8585 MB / 372.5 MB, free: 23.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.2384, allocations: 32.67 kB / 372.5 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.2384, allocations: 1.281 kB / 372.6 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000958/0.2394, allocations: 233.6 kB / 372.8 MB, free: 23.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006739/0.24, allocations: 128.2 kB / 372.9 MB, free: 23.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005773/0.2458, allocations: 5.238 MB / 378.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006165/0.2465, allocations: 89.84 kB / 378.2 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.2465, allocations: 19.31 kB / 378.2 MB, free: 19.86 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.0002169/0.2467, allocations: 199.6 kB / 378.4 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.274e-05/0.2468, allocations: 73.38 kB / 378.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/0.2489, allocations: 0.8216 MB / 379.3 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.2489, allocations: 4.688 kB / 379.3 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.2489, allocations: 2.469 kB / 379.3 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001932/0.2509, allocations: 1.091 MB / 380.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002721/0.2536, allocations: 1.551 MB / 382 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.2536, allocations: 0 / 382 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006791/0.2543, allocations: 133.5 kB / 382.1 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007587/0.2551, allocations: 191.3 kB / 382.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.2551, allocations: 13.89 kB / 382.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003825/0.259, allocations: 3.539 MB / 385.9 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.259, allocations: 0 / 385.9 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/0.2615, allocations: 1.137 MB / 387 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001878/0.2617, allocations: 204.6 kB / 387.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.596e-05/0.2618, allocations: 17.16 kB / 387.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004802/0.2622, allocations: 46.8 kB / 387.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.2624, allocations: 49.67 kB / 387.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-05/0.2624, allocations: 15.89 kB / 387.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003961/0.2628, allocations: 385.8 kB / 387.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2628, allocations: 4 kB / 387.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006208/0.2634, allocations: 215.8 kB / 387.9 MB, free: 14.09 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.002699/0.2661, allocations: 1.694 MB / 389.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001968/0.2681, allocations: 1.066 MB / 390.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.2681, allocations: 1.562 kB / 390.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008873/0.269, allocations: 0.5556 MB / 391.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007635/0.2698, allocations: 173 kB / 391.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008784/0.2786, allocations: 6.759 MB / 398.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.2788, allocations: 0.8857 MB / 399 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003068/0.2792, allocations: 84.94 kB / 399.1 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/0.2794, allocations: 232 kB / 399.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2794, allocations: 0 / 399.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1903/0.4697, allocations: 18.57 MB / 417.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002137/0.4699, allocations: 240.2 kB / 418.2 MB, free: 5.176 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.209/2.679, allocations: 0 / 418.2 MB, free: 5.176 MB / 318.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches