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.0008486/0.0008487, allocations: 97.8 kB / 16.95 MB, free: 5.977 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.0008133/0.0008134, allocations: 177.2 kB / 17.84 MB, free: 5.633 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.469/1.469, allocations: 205.4 MB / 224 MB, free: 13.07 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.0007053/0.0007056, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1139, allocations: 47.59 MB / 328.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005238/0.1192, allocations: 4.209 MB / 332.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003172/0.1224, allocations: 1.326 MB / 334 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004107/0.1228, allocations: 7.938 kB / 334 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003508/0.1232, allocations: 103.2 kB / 334.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008879/0.1241, allocations: 297.8 kB / 334.4 MB, free: 14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005188/0.1246, allocations: 163.8 kB / 334.6 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.1258, allocations: 0.9096 MB / 335.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004346/0.1262, allocations: 261.6 kB / 335.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006312/0.1269, allocations: 350.8 kB / 336.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005735/0.1275, allocations: 406.3 kB / 336.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.1276, allocations: 56 kB / 336.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.1277, allocations: 60 kB / 336.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000159/0.1279, allocations: 159.4 kB / 336.7 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.1281, allocations: 185.3 kB / 336.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009128/0.129, allocations: 0.7829 MB / 337.7 MB, free: 10.66 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.129, allocations: 0 / 337.7 MB, free: 10.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.129, allocations: 7.938 kB / 337.7 MB, free: 10.65 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.1291, allocations: 0 / 337.7 MB, free: 10.65 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.001952/0.131, allocations: 1.088 MB / 338.8 MB, free: 9.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.1311, allocations: 12.03 kB / 338.8 MB, free: 9.488 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001755/0.1313, allocations: 103.7 kB / 338.9 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001548/0.1314, allocations: 102.9 kB / 339 MB, free: 9.273 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008592/0.1323, allocations: 495.9 kB / 339.5 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.1324, allocations: 100.7 kB / 339.6 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-05/0.1325, allocations: 55.98 kB / 339.6 MB, free: 8.582 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.1339, allocations: 0.8127 MB / 340.5 MB, free: 7.664 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.1339, allocations: 4 kB / 340.5 MB, free: 7.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-05/0.134, allocations: 31.98 kB / 340.5 MB, free: 7.629 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.134, allocations: 19.98 kB / 340.5 MB, free: 7.609 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.1352, allocations: 0.536 MB / 341 MB, free: 7.074 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.003677/0.1389, allocations: 2.182 MB / 343.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.1402, allocations: 0.5694 MB / 343.8 MB, free: 4.176 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006559/0.1408, allocations: 282.3 kB / 344.1 MB, free: 3.895 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.587e-05/0.1409, allocations: 12.7 kB / 344.1 MB, free: 3.883 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008064/0.1417, allocations: 346.9 kB / 344.4 MB, free: 3.531 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 2.956e-06/0.1417, allocations: 0 / 344.4 MB, free: 3.531 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004919/0.1467, allocations: 1.579 MB / 346 MB, free: 1.902 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000444/0.1471, allocations: 0.8233 MB / 346.8 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007407/0.1479, allocations: 0.5823 MB / 347.4 MB, free: 300 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.618e-05/0.1479, allocations: 41.7 kB / 347.4 MB, free: 252 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003083/0.1483, allocations: 352.6 kB / 347.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.1485, allocations: 189.3 kB / 348 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.997e-05/0.1485, allocations: 12 kB / 348 MB, free: 15.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.1487, allocations: 374.8 kB / 348.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005956/0.1493, allocations: 221 kB / 348.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009941/0.1503, allocations: 0.5403 MB / 349.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008265/0.1512, allocations: 325.4 kB / 349.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.1512, allocations: 4 kB / 349.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001888/0.1531, allocations: 0.8624 MB / 350.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.922e-05/0.1532, allocations: 59.41 kB / 350.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.1532, allocations: 4 kB / 350.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000746/0.1539, allocations: 229.6 kB / 350.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005753/0.1545, allocations: 123.8 kB / 350.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006862/0.1614, allocations: 4.291 MB / 355 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009701/0.1624, allocations: 99.38 kB / 355.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-05/0.1625, allocations: 20 kB / 355.1 MB, free: 8.121 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.0005317/0.163, allocations: 213.8 kB / 355.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.1631, allocations: 83.09 kB / 355.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001383/0.1633, allocations: 78.84 kB / 355.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.1633, allocations: 8 kB / 355.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1633, allocations: 0 / 355.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002248/0.1656, allocations: 1.097 MB / 356.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.1684, allocations: 1.576 MB / 358.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.1684, allocations: 288 / 358.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005706/0.169, allocations: 111.9 kB / 358.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005653/0.1695, allocations: 177.6 kB / 358.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.074e-05/0.1696, allocations: 23.89 kB / 358.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005029/0.1746, allocations: 3.67 MB / 362.1 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1747, allocations: 0 / 362.1 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002535/0.1772, allocations: 1.078 MB / 363.2 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004433/0.1777, allocations: 208.1 kB / 363.4 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.1778, allocations: 19.95 kB / 363.4 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006004/0.1784, allocations: 55.89 kB / 363.5 MB, free: 15.22 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.1786, allocations: 56.55 kB / 363.5 MB, free: 15.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.578e-05/0.1787, allocations: 15.98 kB / 363.6 MB, free: 15.15 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006449/0.1793, allocations: 411.1 kB / 364 MB, free: 14.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1793, allocations: 0 / 364 MB, free: 14.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009888/0.1803, allocations: 255.7 kB / 364.2 MB, free: 14.51 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.002616/0.1829, allocations: 1.634 MB / 365.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.1854, allocations: 1.051 MB / 366.9 MB, free: 11.74 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.1854, allocations: 4 kB / 366.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.1865, allocations: 0.5517 MB / 367.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/0.1879, allocations: 207 kB / 367.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008647/0.1965, allocations: 4.322 MB / 372 MB, free: 6.559 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005684/0.1971, allocations: 0.9161 MB / 372.9 MB, free: 5.609 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004759/0.1976, allocations: 89.2 kB / 373 MB, free: 5.523 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003656/0.198, allocations: 259.3 kB / 373.2 MB, free: 5.27 MB / 318.1 MB Notification: Performance of SimCode: time 1.293e-06/0.198, allocations: 4 kB / 373.2 MB, free: 5.266 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2425/0.4405, allocations: 20.46 MB / 393.7 MB, free: 46.61 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.4408, allocations: 217.6 kB / 393.9 MB, free: 46.36 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.529/2.97, allocations: 0 / 393.9 MB, free: 46.36 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