Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_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.001537/0.001538, allocations: 117.4 kB / 17.28 MB, free: 6.219 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.001728/0.001728, allocations: 193.3 kB / 18.19 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.216/1.216, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 48.16 kB / 280.3 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08436/0.08546, allocations: 46.62 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.004843/0.09034, allocations: 4.387 MB / 331.3 MB, free: 292 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.09215, allocations: 1.243 MB / 332.5 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/0.09234, allocations: 15.88 kB / 332.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000297/0.09266, allocations: 107.3 kB / 332.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004339/0.0931, allocations: 230.2 kB / 332.9 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003206/0.09343, allocations: 167.8 kB / 333 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007603/0.0942, allocations: 0.9296 MB / 333.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002952/0.0945, allocations: 248.5 kB / 334.2 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003762/0.09488, allocations: 362.6 kB / 334.5 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003708/0.09526, allocations: 398.4 kB / 334.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.09538, allocations: 76 kB / 335 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.09549, allocations: 80 kB / 335.1 MB, free: 12.44 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.09563, allocations: 175.3 kB / 335.3 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003638/0.096, allocations: 414.1 kB / 335.7 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006509/0.09665, allocations: 0.9071 MB / 336.6 MB, free: 10.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.09666, allocations: 3.938 kB / 336.6 MB, free: 10.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09667, allocations: 4 kB / 336.6 MB, free: 10.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.09668, allocations: 4 kB / 336.6 MB, free: 10.94 MB / 286.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.001841/0.09853, allocations: 1.105 MB / 337.7 MB, free: 9.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.09857, allocations: 8.031 kB / 337.7 MB, free: 9.762 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.0987, allocations: 95.7 kB / 337.8 MB, free: 9.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.09883, allocations: 84 kB / 337.9 MB, free: 9.578 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005458/0.09938, allocations: 488.5 kB / 338.3 MB, free: 9.059 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.09952, allocations: 101 kB / 338.4 MB, free: 8.949 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.473e-05/0.0996, allocations: 48.38 kB / 338.5 MB, free: 8.902 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.1006, allocations: 0.6591 MB / 339.1 MB, free: 8.168 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.1006, allocations: 0 / 339.1 MB, free: 8.168 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.245e-05/0.1007, allocations: 24 kB / 339.2 MB, free: 8.145 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.1007, allocations: 11.94 kB / 339.2 MB, free: 8.133 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009427/0.1017, allocations: 455.7 kB / 339.6 MB, free: 7.691 MB / 286.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.002673/0.1044, allocations: 1.979 MB / 341.6 MB, free: 5.582 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.1061, allocations: 0.6865 MB / 342.3 MB, free: 4.871 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005139/0.1066, allocations: 258 kB / 342.5 MB, free: 4.617 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.411e-05/0.1067, allocations: 12.42 kB / 342.6 MB, free: 4.605 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.1067, allocations: 43 kB / 342.6 MB, free: 4.555 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 1.513e-06/0.1067, allocations: 0 / 342.6 MB, free: 4.555 MB / 286.1 MB Notification: Performance of matching and sorting (n=54): time 0.004697/0.1114, allocations: 1.48 MB / 344.1 MB, free: 3 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002151/0.1117, allocations: 0.5799 MB / 344.7 MB, free: 2.285 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005504/0.1122, allocations: 0.5343 MB / 345.2 MB, free: 1.742 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.914e-05/0.1123, allocations: 37.7 kB / 345.2 MB, free: 1.699 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002007/0.1125, allocations: 292.5 kB / 345.5 MB, free: 1.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.1126, allocations: 181.3 kB / 345.7 MB, free: 1.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.1128, allocations: 114.1 kB / 345.8 MB, free: 1.109 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1129, allocations: 374.7 kB / 346.2 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004877/0.1134, allocations: 201 kB / 346.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005969/0.114, allocations: 412.3 kB / 346.8 MB, free: 56 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000944/0.115, allocations: 488.5 kB / 347.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.115, allocations: 0 / 347.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002213/0.1172, allocations: 0.8068 MB / 348.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.1173, allocations: 33.69 kB / 348.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1173, allocations: 4 kB / 348.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.1183, allocations: 222.3 kB / 348.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006779/0.119, allocations: 131.8 kB / 348.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0288/0.1478, allocations: 5.614 MB / 354 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000741/0.1486, allocations: 79.55 kB / 354.1 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/0.1486, allocations: 23.98 kB / 354.2 MB, free: 8.199 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.0002709/0.1489, allocations: 189.7 kB / 354.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.1491, allocations: 75.14 kB / 354.4 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002154/0.1513, allocations: 0.7734 MB / 355.2 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1513, allocations: 7.938 kB / 355.2 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1513, allocations: 4 kB / 355.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002082/0.1534, allocations: 1.039 MB / 356.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/0.1563, allocations: 1.506 MB / 357.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.1563, allocations: 0 / 357.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007225/0.1571, allocations: 123.8 kB / 357.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008174/0.1579, allocations: 185.6 kB / 358 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.602e-05/0.1579, allocations: 12 kB / 358.1 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004855/0.1628, allocations: 3.803 MB / 361.9 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1628, allocations: 3.938 kB / 361.9 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002531/0.1654, allocations: 1.066 MB / 362.9 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002539/0.1656, allocations: 204.2 kB / 363.1 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.612e-05/0.1657, allocations: 12 kB / 363.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005059/0.1662, allocations: 43.91 kB / 363.2 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.1663, allocations: 40.5 kB / 363.2 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.1664, allocations: 19.98 kB / 363.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004251/0.1668, allocations: 382.8 kB / 363.6 MB, free: 14.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1668, allocations: 0 / 363.6 MB, free: 14.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007019/0.1675, allocations: 219.8 kB / 363.8 MB, free: 13.99 MB / 318.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.003009/0.1705, allocations: 1.63 MB / 365.5 MB, free: 12.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002337/0.1729, allocations: 1.061 MB / 366.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1729, allocations: 192 / 366.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009772/0.1739, allocations: 0.5316 MB / 367 MB, free: 10.65 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008735/0.1748, allocations: 194.8 kB / 367.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.1854, allocations: 6.504 MB / 373.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.1859, allocations: 0.8918 MB / 374.6 MB, free: 2.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00035/0.1862, allocations: 81.06 kB / 374.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003001/0.1865, allocations: 243.3 kB / 375 MB, free: 2.598 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1866, allocations: 0 / 375 MB, free: 2.598 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6009/0.7875, allocations: 19.57 MB / 394.5 MB, free: 48.02 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/0.7877, allocations: 232.1 kB / 394.7 MB, free: 47.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.554/3.342, allocations: 4 kB / 394.8 MB, free: 47.77 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches