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.0009962/0.000996, allocations: 94.64 kB / 16.94 MB, free: 5.98 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.0009343/0.0009343, allocations: 182.5 kB / 17.82 MB, free: 5.652 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.581/1.581, allocations: 205.4 MB / 224 MB, free: 13.04 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.0004354/0.0004355, allocations: 12 kB / 280.8 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09826, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.004131/0.1024, allocations: 3.48 MB / 331.9 MB, free: 496 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00231/0.1048, allocations: 1.186 MB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003041/0.1051, allocations: 8 kB / 333.1 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002674/0.1054, allocations: 87.34 kB / 333.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005954/0.106, allocations: 275.2 kB / 333.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.1065, allocations: 147.8 kB / 333.6 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.1078, allocations: 0.6471 MB / 334.2 MB, free: 14.13 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004548/0.1083, allocations: 196.7 kB / 334.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00062/0.1089, allocations: 310.9 kB / 334.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006157/0.1096, allocations: 338.6 kB / 335.1 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.997e-05/0.1097, allocations: 44 kB / 335.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.1098, allocations: 44 kB / 335.1 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001977/0.11, allocations: 123.5 kB / 335.3 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001948/0.1102, allocations: 173.3 kB / 335.4 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007222/0.1109, allocations: 0.631 MB / 336.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1109, allocations: 3.938 kB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.111, allocations: 0 / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.111, allocations: 4 kB / 336.1 MB, free: 12.27 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.002086/0.1131, allocations: 0.9886 MB / 337.1 MB, free: 11.22 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.1131, allocations: 12.03 kB / 337.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002339/0.1134, allocations: 99.36 kB / 337.2 MB, free: 11.1 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.1135, allocations: 83.06 kB / 337.3 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000676/0.1142, allocations: 435.7 kB / 337.7 MB, free: 10.55 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.1144, allocations: 104.3 kB / 337.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.1145, allocations: 48 kB / 337.8 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.1158, allocations: 0.66 MB / 338.5 MB, free: 9.656 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.1159, allocations: 0 / 338.5 MB, free: 9.656 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.203e-05/0.1159, allocations: 24 kB / 338.5 MB, free: 9.633 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.116, allocations: 12 kB / 338.5 MB, free: 9.621 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.1172, allocations: 479.7 kB / 339 MB, free: 9.152 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.003229/0.1204, allocations: 1.955 MB / 340.9 MB, free: 7.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002057/0.1225, allocations: 0.745 MB / 341.7 MB, free: 6.301 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.334e-05/0.1225, allocations: 16.41 kB / 341.7 MB, free: 6.285 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.1226, allocations: 43 kB / 341.8 MB, free: 6.234 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.575e-06/0.1226, allocations: 0 / 341.8 MB, free: 6.234 MB / 286.1 MB Notification: Performance of matching and sorting (n=54): time 0.005191/0.1278, allocations: 1.595 MB / 343.3 MB, free: 4.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003414/0.1282, allocations: 0.5643 MB / 343.9 MB, free: 3.867 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006316/0.1288, allocations: 0.4952 MB / 344.4 MB, free: 3.363 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.72e-05/0.1289, allocations: 37.7 kB / 344.4 MB, free: 3.32 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003076/0.1292, allocations: 288.7 kB / 344.7 MB, free: 3.035 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.1294, allocations: 189.2 kB / 344.9 MB, free: 2.848 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.663e-05/0.1294, allocations: 8 kB / 344.9 MB, free: 2.84 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.1296, allocations: 378.7 kB / 345.3 MB, free: 2.461 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004978/0.1301, allocations: 209 kB / 345.5 MB, free: 2.258 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007119/0.1308, allocations: 424.5 kB / 345.9 MB, free: 1.762 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005691/0.1314, allocations: 268 kB / 346.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1314, allocations: 0 / 346.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002232/0.1337, allocations: 0.8652 MB / 347 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/0.1337, allocations: 29.7 kB / 347.1 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.1337, allocations: 4 kB / 347.1 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000997/0.1347, allocations: 230.4 kB / 347.3 MB, free: 344 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007003/0.1355, allocations: 135.8 kB / 347.4 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007236/0.1427, allocations: 5.313 MB / 352.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006788/0.1434, allocations: 91.73 kB / 352.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.735e-05/0.1435, allocations: 16.12 kB / 352.8 MB, free: 10.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002741/0.1437, allocations: 190 kB / 353 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.1439, allocations: 83.11 kB / 353.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/0.1461, allocations: 0.8203 MB / 353.9 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.1461, allocations: 8 kB / 353.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.1461, allocations: 0 / 353.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002167/0.1483, allocations: 1.086 MB / 355 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003092/0.1514, allocations: 1.521 MB / 356.5 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1514, allocations: 0 / 356.5 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007164/0.1522, allocations: 131.8 kB / 356.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007988/0.153, allocations: 185.5 kB / 356.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.153, allocations: 16 kB / 356.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00499/0.158, allocations: 3.595 MB / 360.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.158, allocations: 0 / 360.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002814/0.1609, allocations: 1.129 MB / 361.6 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003304/0.1612, allocations: 192.3 kB / 361.8 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.896e-05/0.1613, allocations: 16 kB / 361.8 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005575/0.1619, allocations: 51.95 kB / 361.8 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.162, allocations: 52.38 kB / 361.9 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.03e-05/0.162, allocations: 16 kB / 361.9 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004258/0.1625, allocations: 354.8 kB / 362.3 MB, free: 452 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1625, allocations: 0 / 362.3 MB, free: 452 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007173/0.1632, allocations: 215.8 kB / 362.5 MB, free: 236 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.003052/0.1663, allocations: 1.689 MB / 364.2 MB, free: 14.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002427/0.1687, allocations: 1.062 MB / 365.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.1687, allocations: 0 / 365.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.1698, allocations: 0.5473 MB / 365.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008472/0.1707, allocations: 162.2 kB / 365.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003047/0.1737, allocations: 2.571 MB / 368.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005308/0.1743, allocations: 0.907 MB / 369.4 MB, free: 9.098 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000327/0.1746, allocations: 72.7 kB / 369.5 MB, free: 9.027 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002809/0.1749, allocations: 227.3 kB / 369.7 MB, free: 8.805 MB / 318.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1749, allocations: 0 / 369.7 MB, free: 8.805 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.188/0.3629, allocations: 17.15 MB / 386.8 MB, free: 50.77 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/0.3631, allocations: 216.4 kB / 387.1 MB, free: 50.52 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/2.758, allocations: 0 / 387.1 MB, free: 50.52 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat