Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",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.00229/0.00229, allocations: 179.1 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.205/2.205, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 78.7 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.227e-05/4.233e-05, allocations: 7.984 kB / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.112, allocations: 47.57 MB / 369.2 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4539/0.566, allocations: 83.37 MB / 452.5 MB, free: 9.508 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.5663, allocations: 70.41 kB / 452.6 MB, free: 9.477 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06569/0.632, allocations: 14.02 MB / 466.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6321, allocations: 0 / 466.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.745e-05/0.6321, allocations: 16 kB / 466.6 MB, free: 13.51 MB / 346.7 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.002814/0.635, allocations: 0.9039 MB / 467.6 MB, free: 12.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.6351, allocations: 8.031 kB / 467.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003087/0.6354, allocations: 99.41 kB / 467.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002888/0.6357, allocations: 91 kB / 467.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/0.6369, allocations: 451.8 kB / 468.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002631/0.6373, allocations: 100.4 kB / 468.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001693/0.6374, allocations: 48 kB / 468.3 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.639, allocations: 0.6055 MB / 468.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.6391, allocations: 0 / 468.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.353e-05/0.6392, allocations: 24 kB / 469 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.6392, allocations: 8 kB / 469 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.6405, allocations: 391.8 kB / 469.4 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006046/0.6466, allocations: 1.91 MB / 471.3 MB, free: 8.594 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003313/0.65, allocations: 0.6742 MB / 471.9 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007566/0.6508, allocations: 231.1 kB / 472.2 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.583e-05/0.6509, allocations: 20.53 kB / 472.2 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.167e-05/0.651, allocations: 51.06 kB / 472.2 MB, free: 7.582 MB / 346.7 MB Notification: Performance of pre-optimization done (n=56): time 3.016e-06/0.651, allocations: 0 / 472.2 MB, free: 7.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=56): time 0.003455/0.6545, allocations: 0.6958 MB / 472.9 MB, free: 6.875 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003211/0.6548, allocations: 0.5645 MB / 473.5 MB, free: 6.176 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.6559, allocations: 473 kB / 474 MB, free: 5.711 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002016/0.6561, allocations: 45.7 kB / 474 MB, free: 5.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003081/0.6564, allocations: 311.1 kB / 474.3 MB, free: 5.352 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00029/0.6567, allocations: 185.2 kB / 474.5 MB, free: 5.168 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.024e-05/0.6568, allocations: 12 kB / 474.5 MB, free: 5.156 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.657, allocations: 334.8 kB / 474.8 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006014/0.6576, allocations: 161.1 kB / 475 MB, free: 4.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008396/0.6584, allocations: 376.6 kB / 475.3 MB, free: 4.215 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006643/0.6591, allocations: 227.8 kB / 475.6 MB, free: 3.988 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.6591, allocations: 4 kB / 475.6 MB, free: 3.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00343/0.6626, allocations: 0.7331 MB / 476.3 MB, free: 3.227 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.696e-05/0.6627, allocations: 33.7 kB / 476.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.6627, allocations: 4 kB / 476.3 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001603/0.6643, allocations: 218.3 kB / 476.6 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001615/0.666, allocations: 139.8 kB / 476.7 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/0.6764, allocations: 5.011 MB / 481.7 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/0.6777, allocations: 83.94 kB / 481.8 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.6778, allocations: 19.98 kB / 481.8 MB, free: 13.31 MB / 362.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * 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.0002758/0.6781, allocations: 152.9 kB / 482 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.6783, allocations: 71.16 kB / 482 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003529/0.6819, allocations: 0.7497 MB / 482.8 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.825e-05/0.6819, allocations: 4 kB / 482.8 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.682, allocations: 7.828 kB / 482.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003099/0.6851, allocations: 0.988 MB / 483.8 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005166/0.6903, allocations: 1.467 MB / 485.2 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.6904, allocations: 0 / 485.2 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001672/0.692, allocations: 139.8 kB / 485.4 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/0.6933, allocations: 157.7 kB / 485.5 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/0.6935, allocations: 19.98 kB / 485.6 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007337/0.7008, allocations: 3.381 MB / 488.9 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.7009, allocations: 7.969 kB / 488.9 MB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003989/0.7049, allocations: 0.9841 MB / 489.9 MB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006047/0.7055, allocations: 204.2 kB / 490.1 MB, free: 4.473 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/0.7057, allocations: 12 kB / 490.1 MB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008627/0.7066, allocations: 43.97 kB / 490.2 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.7068, allocations: 56.38 kB / 490.2 MB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.953e-05/0.7069, allocations: 16 kB / 490.2 MB, free: 4.348 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000798/0.7077, allocations: 377.6 kB / 490.6 MB, free: 3.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7077, allocations: 0 / 490.6 MB, free: 3.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001317/0.7091, allocations: 231.7 kB / 490.8 MB, free: 3.754 MB / 362.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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.004508/0.7136, allocations: 1.561 MB / 492.4 MB, free: 2.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002885/0.7166, allocations: 0.9133 MB / 493.3 MB, free: 1.195 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/0.7166, allocations: 7.938 kB / 493.3 MB, free: 1.188 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.7184, allocations: 0.5043 MB / 493.8 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.7199, allocations: 174.8 kB / 494 MB, free: 500 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003923/0.7238, allocations: 1.063 MB / 495.1 MB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006618/0.7246, allocations: 0.9036 MB / 496 MB, free: 14.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006666/0.7253, allocations: 235.3 kB / 496.2 MB, free: 14.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.683e-06/0.7253, allocations: 0 / 496.2 MB, free: 14.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.974/3.7, allocations: 17.36 MB / 0.5015 GB, free: 12.83 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat