Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001575/0.001575, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.12/2.12, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001156/0.001155, allocations: 93.67 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.848e-05/2.863e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3567, allocations: 47.56 MB / 362.4 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1387/0.4954, allocations: 83.47 MB / 445.9 MB, free: 2.832 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/0.4958, allocations: 75.97 kB / 446 MB, free: 2.758 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06902/0.5648, allocations: 15.63 MB / 461.6 MB, free: 3.09 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.5649, allocations: 0 / 461.6 MB, free: 3.09 MB / 347.1 MB Notification: Performance of Transformations before backend: time 6.224e-05/0.565, allocations: 13.59 kB / 461.6 MB, free: 3.078 MB / 347.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.002989/0.568, allocations: 0.9715 MB / 462.6 MB, free: 2.051 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.5681, allocations: 8.031 kB / 462.6 MB, free: 2.043 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003828/0.5685, allocations: 102.9 kB / 462.7 MB, free: 1.941 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.5696, allocations: 470.7 kB / 463.2 MB, free: 1.438 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002211/0.5699, allocations: 84.7 kB / 463.2 MB, free: 1.344 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.57, allocations: 39.95 kB / 463.3 MB, free: 1.305 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001251/0.5713, allocations: 410.5 kB / 463.7 MB, free: 0.9023 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.5728, allocations: 0.6634 MB / 464.3 MB, free: 140 kB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.56e-05/0.5728, allocations: 7.906 kB / 464.4 MB, free: 132 kB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.505e-05/0.5729, allocations: 0 / 464.4 MB, free: 132 kB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.573, allocations: 12 kB / 464.4 MB, free: 120 kB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005753/0.5787, allocations: 1.949 MB / 466.3 MB, free: 14.09 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/0.5804, allocations: 477.4 kB / 466.8 MB, free: 13.61 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005464/0.581, allocations: 217.8 kB / 467 MB, free: 13.4 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.563e-05/0.5811, allocations: 13.64 kB / 467 MB, free: 13.39 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007169/0.5818, allocations: 281.9 kB / 467.3 MB, free: 13.09 MB / 363.1 MB Notification: Performance of pre-optimization done (n=59): time 3.797e-06/0.5818, allocations: 0 / 467.3 MB, free: 13.09 MB / 363.1 MB Notification: Performance of matching and sorting (n=59): time 0.003025/0.5848, allocations: 0.7026 MB / 468 MB, free: 12.38 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00039/0.5853, allocations: 0.8194 MB / 468.8 MB, free: 11.36 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009448/0.5862, allocations: 458.5 kB / 469.3 MB, free: 10.91 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001718/0.5864, allocations: 29.7 kB / 469.3 MB, free: 10.88 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003633/0.5868, allocations: 360.8 kB / 469.6 MB, free: 10.52 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002705/0.5871, allocations: 185.2 kB / 469.8 MB, free: 10.34 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.224e-05/0.5871, allocations: 0 / 469.8 MB, free: 10.34 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5873, allocations: 342.8 kB / 470.2 MB, free: 9.996 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005003/0.5878, allocations: 157.6 kB / 470.3 MB, free: 9.84 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008188/0.5886, allocations: 478 kB / 470.8 MB, free: 9.254 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005781/0.5892, allocations: 204.3 kB / 471 MB, free: 9.055 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.5893, allocations: 0 / 471 MB, free: 9.055 MB / 363.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.003045/0.5923, allocations: 0.7267 MB / 471.7 MB, free: 8.316 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.51e-05/0.5924, allocations: 55.41 kB / 471.8 MB, free: 8.25 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/0.5925, allocations: 7.953 kB / 471.8 MB, free: 8.242 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.5937, allocations: 214.5 kB / 472 MB, free: 8.027 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.5951, allocations: 131.8 kB / 472.1 MB, free: 7.898 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008306/0.6034, allocations: 3.947 MB / 476 MB, free: 3.715 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.6047, allocations: 79.41 kB / 476.1 MB, free: 3.637 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.775e-05/0.6048, allocations: 27.98 kB / 476.2 MB, free: 3.609 MB / 363.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real oneWayValve.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real oneWayValve.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * 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.0003477/0.6052, allocations: 143.7 kB / 476.3 MB, free: 3.465 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002989/0.6082, allocations: 0.6988 MB / 477 MB, free: 2.754 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003096/0.6086, allocations: 75.16 kB / 477.1 MB, free: 2.68 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002762/0.6089, allocations: 70.83 kB / 477.1 MB, free: 2.613 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.6089, allocations: 12 kB / 477.1 MB, free: 2.602 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.6089, allocations: 0 / 477.1 MB, free: 2.602 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002766/0.6117, allocations: 0.9645 MB / 478.1 MB, free: 1.523 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003794/0.6155, allocations: 1.378 MB / 479.5 MB, free: 88 kB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.6156, allocations: 0 / 479.5 MB, free: 88 kB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/0.6169, allocations: 127.8 kB / 479.6 MB, free: 15.96 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007556/0.6177, allocations: 149.5 kB / 479.8 MB, free: 15.81 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.255e-05/0.6178, allocations: 7.984 kB / 479.8 MB, free: 15.8 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006406/0.6242, allocations: 3.378 MB / 483.1 MB, free: 12.19 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.6243, allocations: 4.125 kB / 483.1 MB, free: 12.18 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002707/0.627, allocations: 0.8832 MB / 484 MB, free: 11.28 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000575/0.6276, allocations: 212.1 kB / 484.2 MB, free: 11.05 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.6278, allocations: 4 kB / 484.2 MB, free: 11.05 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000868/0.6287, allocations: 47.97 kB / 484.3 MB, free: 11 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000234/0.6289, allocations: 56.48 kB / 484.3 MB, free: 10.95 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.696e-05/0.629, allocations: 11.98 kB / 484.4 MB, free: 10.94 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0007199/0.6297, allocations: 354.9 kB / 484.7 MB, free: 10.59 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.272e-06/0.6298, allocations: 0 / 484.7 MB, free: 10.59 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001383/0.6312, allocations: 243.6 kB / 484.9 MB, free: 10.36 MB / 379.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * 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.00321/0.6344, allocations: 1.467 MB / 486.4 MB, free: 8.855 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.002492/0.6369, allocations: 0.8829 MB / 487.3 MB, free: 7.926 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.637, allocations: 0 / 487.3 MB, free: 7.926 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.6382, allocations: 497.3 kB / 487.8 MB, free: 7.422 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.6396, allocations: 182.1 kB / 488 MB, free: 7.25 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.6431, allocations: 0.9355 MB / 488.9 MB, free: 6.27 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007063/0.6438, allocations: 0.9358 MB / 489.8 MB, free: 5.305 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006276/0.6444, allocations: 255.3 kB / 490.1 MB, free: 5.059 MB / 379.1 MB Notification: Performance of SimCode: time 1.663e-06/0.6445, allocations: 0 / 490.1 MB, free: 5.059 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.092/3.737, allocations: 18.14 MB / 0.4963 GB, free: 2.918 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat