Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.WaterPump,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",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.001276/0.001276, allocations: 99.62 kB / 16.94 MB, free: 6.426 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.001482/0.001482, allocations: 180.4 kB / 17.83 MB, free: 6.039 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.628/1.628, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004621/0.0004621, allocations: 17 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1214, allocations: 47.56 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00537/0.1269, allocations: 3.868 MB / 332.3 MB, free: 124 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003063/0.13, allocations: 1.357 MB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003191/0.1303, allocations: 15.88 kB / 333.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000299/0.1306, allocations: 99.27 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008194/0.1315, allocations: 355 kB / 334.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.1319, allocations: 171.7 kB / 334.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009418/0.1329, allocations: 0.7018 MB / 335 MB, free: 13.42 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004094/0.1333, allocations: 249.6 kB / 335.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004177/0.1337, allocations: 334.9 kB / 335.5 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004695/0.1342, allocations: 378.4 kB / 335.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.373e-05/0.1343, allocations: 52 kB / 336 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.1344, allocations: 48 kB / 336 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.1346, allocations: 147.4 kB / 336.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.1347, allocations: 193.3 kB / 336.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006581/0.1354, allocations: 0.7283 MB / 337.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1354, allocations: 8 kB / 337.1 MB, free: 11.28 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1354, allocations: 3.938 kB / 337.1 MB, free: 11.28 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.1355, allocations: 0 / 337.1 MB, free: 11.28 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002064/0.1375, allocations: 1.072 MB / 338.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.1376, allocations: 16.02 kB / 338.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001769/0.1378, allocations: 107.7 kB / 338.3 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.1379, allocations: 98.88 kB / 338.4 MB, free: 9.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00066/0.1386, allocations: 459.8 kB / 338.8 MB, free: 9.418 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.1388, allocations: 104.7 kB / 338.9 MB, free: 9.305 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.844e-05/0.1388, allocations: 52 kB / 339 MB, free: 9.254 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.1402, allocations: 0.8166 MB / 339.8 MB, free: 8.332 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.1403, allocations: 0 / 339.8 MB, free: 8.332 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.131e-05/0.1403, allocations: 24 kB / 339.8 MB, free: 8.309 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.1404, allocations: 12 kB / 339.8 MB, free: 8.297 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.1417, allocations: 0.5321 MB / 340.4 MB, free: 7.766 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.003381/0.145, allocations: 2.147 MB / 342.5 MB, free: 5.48 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.1466, allocations: 0.6113 MB / 343.1 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.585e-05/0.1466, allocations: 13.64 kB / 343.1 MB, free: 4.848 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008318/0.1475, allocations: 339 kB / 343.5 MB, free: 4.504 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 4.028e-06/0.1475, allocations: 0 / 343.5 MB, free: 4.504 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.005199/0.1527, allocations: 1.58 MB / 345 MB, free: 2.871 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005942/0.1533, allocations: 0.8233 MB / 345.9 MB, free: 1.852 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000775/0.1541, allocations: 0.5315 MB / 346.4 MB, free: 1.312 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.1542, allocations: 41.7 kB / 346.4 MB, free: 1.266 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003552/0.1546, allocations: 352.5 kB / 346.8 MB, free: 0.918 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.1548, allocations: 189.3 kB / 347 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.098e-05/0.1548, allocations: 12 kB / 347 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0003255/0.1552, allocations: 374.8 kB / 347.3 MB, free: 352 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000628/0.1558, allocations: 224.9 kB / 347.6 MB, free: 128 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.1569, allocations: 0.5326 MB / 348.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006675/0.1575, allocations: 325.4 kB / 348.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.1576, allocations: 0 / 348.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002225/0.1598, allocations: 0.8663 MB / 349.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.509e-05/0.1599, allocations: 59.34 kB / 349.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.1599, allocations: 4 kB / 349.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007564/0.1606, allocations: 229.5 kB / 349.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.1613, allocations: 119.8 kB / 349.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007282/0.1686, allocations: 4.385 MB / 354.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009246/0.1695, allocations: 91.47 kB / 354.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.366e-05/0.1696, allocations: 23.94 kB / 354.2 MB, free: 9.062 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * 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: 2 * 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 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0004478/0.1701, allocations: 221.4 kB / 354.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.1702, allocations: 79.11 kB / 354.5 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.1704, allocations: 82.84 kB / 354.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1704, allocations: 4 kB / 354.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.1704, allocations: 0 / 354.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002187/0.1726, allocations: 1.105 MB / 355.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003086/0.1757, allocations: 1.587 MB / 357.2 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1757, allocations: 0 / 357.2 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006191/0.1763, allocations: 111.9 kB / 357.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005521/0.1769, allocations: 185.5 kB / 357.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.709e-05/0.1769, allocations: 11.95 kB / 357.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006255/0.1832, allocations: 3.718 MB / 361.3 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.1832, allocations: 3.984 kB / 361.3 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002725/0.186, allocations: 1.074 MB / 362.3 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003621/0.1864, allocations: 204.1 kB / 362.5 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.835e-05/0.1865, allocations: 15.95 kB / 362.6 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006598/0.1871, allocations: 59.95 kB / 362.6 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.1873, allocations: 52.42 kB / 362.7 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.85e-05/0.1873, allocations: 19.98 kB / 362.7 MB, free: 24 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005702/0.1879, allocations: 375.1 kB / 363.1 MB, free: 15.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1879, allocations: 0 / 363.1 MB, free: 15.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001114/0.1891, allocations: 251.7 kB / 363.3 MB, free: 15.42 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.002962/0.192, allocations: 1.638 MB / 364.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.1944, allocations: 1.047 MB / 366 MB, free: 12.65 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.1944, allocations: 0.5 kB / 366 MB, free: 12.65 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.1955, allocations: 0.5629 MB / 366.6 MB, free: 12.06 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009326/0.1965, allocations: 187.5 kB / 366.7 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004268/0.2007, allocations: 3.344 MB / 370.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005841/0.2013, allocations: 0.9312 MB / 371 MB, free: 7.488 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003478/0.2017, allocations: 76.59 kB / 371.1 MB, free: 7.414 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003232/0.202, allocations: 251.3 kB / 371.3 MB, free: 7.168 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.202, allocations: 0 / 371.3 MB, free: 7.168 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2272/0.4293, allocations: 19.39 MB / 390.7 MB, free: 48.05 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.4295, allocations: 203.9 kB / 390.9 MB, free: 47.81 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.397/2.827, allocations: 3.609 kB / 390.9 MB, free: 47.81 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat