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.001566/0.001566, allocations: 185.8 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.95/1.95, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001131/0.001131, allocations: 81.89 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.000385, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.347, allocations: 47.57 MB / 374.6 MB, free: 45.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.4856, allocations: 83.46 MB / 458.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/0.4859, allocations: 71.95 kB / 458.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06311/0.5491, allocations: 14.02 MB / 472.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.5491, allocations: 0 / 472.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.183e-05/0.5492, allocations: 16 kB / 472.2 MB, free: 14.96 MB / 362.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.002847/0.5521, allocations: 1.008 MB / 473.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.8e-05/0.5521, allocations: 15.97 kB / 473.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003228/0.5525, allocations: 99.41 kB / 473.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002805/0.5528, allocations: 87.06 kB / 473.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.554, allocations: 463.7 kB / 473.9 MB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002323/0.5543, allocations: 96.39 kB / 474 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.5544, allocations: 48 kB / 474 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001939/0.5564, allocations: 0.665 MB / 474.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/0.5565, allocations: 3.984 kB / 474.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.855e-05/0.5566, allocations: 24 kB / 474.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/0.5566, allocations: 12 kB / 474.7 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001985/0.5586, allocations: 491.6 kB / 475.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005359/0.564, allocations: 1.91 MB / 477.1 MB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003834/0.5679, allocations: 0.7502 MB / 477.8 MB, free: 8.996 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.568, allocations: 20.5 kB / 477.9 MB, free: 8.977 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.01e-05/0.5681, allocations: 43.69 kB / 477.9 MB, free: 8.926 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 4.568e-06/0.5681, allocations: 0 / 477.9 MB, free: 8.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.009797/0.5779, allocations: 1.618 MB / 479.5 MB, free: 7.238 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00038/0.5784, allocations: 0.5645 MB / 480.1 MB, free: 6.535 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.5795, allocations: 490.2 kB / 480.6 MB, free: 6.051 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.5797, allocations: 37.7 kB / 480.6 MB, free: 6.008 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003152/0.58, allocations: 307.2 kB / 480.9 MB, free: 5.707 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003023/0.5803, allocations: 197.1 kB / 481.1 MB, free: 5.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.968e-05/0.5804, allocations: 12 kB / 481.1 MB, free: 5.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.5806, allocations: 334.8 kB / 481.4 MB, free: 5.164 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.5816, allocations: 213 kB / 481.6 MB, free: 4.957 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.5829, allocations: 433.4 kB / 482.1 MB, free: 4.453 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.5841, allocations: 272 kB / 482.3 MB, free: 4.184 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.5841, allocations: 3.938 kB / 482.3 MB, free: 4.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004232/0.5883, allocations: 0.8152 MB / 483.2 MB, free: 3.344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.022e-05/0.5885, allocations: 41.66 kB / 483.2 MB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.5885, allocations: 4.031 kB / 483.2 MB, free: 3.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/0.5901, allocations: 242.3 kB / 483.4 MB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/0.5917, allocations: 135.8 kB / 483.6 MB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/0.6037, allocations: 5.242 MB / 488.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.6049, allocations: 83.69 kB / 488.9 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/0.605, allocations: 23.98 kB / 488.9 MB, free: 13.16 MB / 378.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 () * Number of clocked 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.0005286/0.6056, allocations: 196.1 kB / 489.1 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001912/0.6058, allocations: 71.16 kB / 489.2 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004136/0.6099, allocations: 0.8398 MB / 490 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-05/0.61, allocations: 8 kB / 490 MB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.61, allocations: 0 / 490 MB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003937/0.6139, allocations: 1.101 MB / 491.1 MB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005786/0.6198, allocations: 1.58 MB / 492.7 MB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.6198, allocations: 0 / 492.7 MB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/0.6214, allocations: 131.8 kB / 492.8 MB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001387/0.6228, allocations: 185.6 kB / 493 MB, free: 8.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.684e-05/0.623, allocations: 15.98 kB / 493 MB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008897/0.6319, allocations: 3.6 MB / 496.6 MB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.6319, allocations: 4.125 kB / 496.6 MB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005461/0.6374, allocations: 1.163 MB / 497.8 MB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006073/0.6381, allocations: 200.2 kB / 498 MB, free: 3.555 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/0.6383, allocations: 16 kB / 498 MB, free: 3.539 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007889/0.6391, allocations: 39.97 kB / 498 MB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/0.6393, allocations: 44.48 kB / 498.1 MB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.655e-05/0.6394, allocations: 15.94 kB / 498.1 MB, free: 3.438 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007815/0.6402, allocations: 386.8 kB / 498.5 MB, free: 3.062 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6402, allocations: 0 / 498.5 MB, free: 3.062 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001191/0.6414, allocations: 235.7 kB / 498.7 MB, free: 2.832 MB / 378.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 () * Number of clocked 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.005791/0.6472, allocations: 1.72 MB / 0.4887 GB, free: 1.082 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.2732/0.9204, allocations: 1.032 MB / 0.4897 GB, free: 107.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/0.9205, allocations: 1.375 kB / 0.4897 GB, free: 107.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002403/0.9229, allocations: 0.5498 MB / 0.4902 GB, free: 107 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001586/0.9245, allocations: 177 kB / 0.4904 GB, free: 107 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005135/0.9297, allocations: 2.624 MB / 0.493 GB, free: 105.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004734/0.9302, allocations: 0.9114 MB / 0.4939 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005812/0.9308, allocations: 242.5 kB / 0.4941 GB, free: 104.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.644e-06/0.9308, allocations: 0 / 0.4941 GB, free: 104.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.985/3.916, allocations: 17.17 MB / 0.5109 GB, free: 99.8 MB / 378.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