Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_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.001091/0.001091, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.631/1.631, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008812/0.0008814, allocations: 94.64 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002558/0.0002559, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2741, allocations: 47.57 MB / 375.9 MB, free: 45.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1054/0.3796, allocations: 83.46 MB / 459.4 MB, free: 13.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000359/0.38, allocations: 79.94 kB / 459.4 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03882/0.4189, allocations: 14.02 MB / 473.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.419, allocations: 3.938 kB / 473.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.663e-05/0.419, allocations: 16 kB / 473.5 MB, free: 14.88 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.001949/0.421, allocations: 1.008 MB / 474.5 MB, free: 13.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.421, allocations: 16.03 kB / 474.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001911/0.4212, allocations: 91.42 kB / 474.6 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.4214, allocations: 87.06 kB / 474.7 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007281/0.4221, allocations: 463.7 kB / 475.1 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.4223, allocations: 96.39 kB / 475.2 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.419e-05/0.4224, allocations: 48 kB / 475.3 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.4236, allocations: 0.665 MB / 475.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.4236, allocations: 0 / 475.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.251e-05/0.4236, allocations: 24 kB / 476 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.4237, allocations: 12 kB / 476 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.4247, allocations: 495.6 kB / 476.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00346/0.4282, allocations: 1.91 MB / 478.4 MB, free: 9.691 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002228/0.4305, allocations: 0.7556 MB / 479.1 MB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.422e-05/0.4305, allocations: 12.5 kB / 479.1 MB, free: 8.898 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.962e-05/0.4306, allocations: 47.12 kB / 479.2 MB, free: 8.844 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.597e-06/0.4306, allocations: 4.562 kB / 479.2 MB, free: 8.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.005566/0.4362, allocations: 1.614 MB / 480.8 MB, free: 7.156 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004009/0.4366, allocations: 0.5645 MB / 481.4 MB, free: 6.453 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007866/0.4374, allocations: 490.2 kB / 481.8 MB, free: 5.969 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.834e-05/0.4375, allocations: 41.7 kB / 481.9 MB, free: 5.922 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.4378, allocations: 280.7 kB / 482.2 MB, free: 5.645 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.438, allocations: 193.1 kB / 482.3 MB, free: 5.453 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.93e-05/0.438, allocations: 12 kB / 482.4 MB, free: 5.441 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.4382, allocations: 370.8 kB / 482.7 MB, free: 5.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005088/0.4387, allocations: 213 kB / 482.9 MB, free: 4.863 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007921/0.4395, allocations: 433.4 kB / 483.4 MB, free: 4.359 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006404/0.4401, allocations: 280 kB / 483.6 MB, free: 4.082 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.4402, allocations: 0 / 483.6 MB, free: 4.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002396/0.4426, allocations: 0.8693 MB / 484.5 MB, free: 3.191 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.407e-05/0.4426, allocations: 33.66 kB / 484.5 MB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.4426, allocations: 4 kB / 484.5 MB, free: 3.148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009655/0.4436, allocations: 230.4 kB / 484.8 MB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007845/0.4444, allocations: 135.8 kB / 484.9 MB, free: 2.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007132/0.4515, allocations: 5.246 MB / 490.1 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007913/0.4524, allocations: 91.69 kB / 490.2 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.614e-05/0.4524, allocations: 20 kB / 490.2 MB, free: 13.02 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.0003737/0.4528, allocations: 190 kB / 490.4 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.4529, allocations: 75.14 kB / 490.5 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00233/0.4553, allocations: 0.8438 MB / 491.3 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.4553, allocations: 4 kB / 491.4 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-06/0.4553, allocations: 0 / 491.4 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002201/0.4575, allocations: 1.101 MB / 492.5 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003316/0.4608, allocations: 1.572 MB / 494 MB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.4609, allocations: 0 / 494 MB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008522/0.4617, allocations: 148 kB / 494.2 MB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007987/0.4625, allocations: 181.7 kB / 494.3 MB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.096e-05/0.4626, allocations: 19.94 kB / 494.4 MB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005169/0.4678, allocations: 3.6 MB / 498 MB, free: 4.809 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.4678, allocations: 0 / 498 MB, free: 4.809 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002931/0.4707, allocations: 1.16 MB / 499.1 MB, free: 3.629 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003875/0.4712, allocations: 200.2 kB / 499.3 MB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.269e-05/0.4712, allocations: 12 kB / 499.3 MB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004386/0.4717, allocations: 47.97 kB / 499.4 MB, free: 3.355 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.4718, allocations: 40.5 kB / 499.4 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.913e-05/0.4719, allocations: 19.98 kB / 499.4 MB, free: 3.293 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004934/0.4724, allocations: 382.8 kB / 499.8 MB, free: 2.922 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4724, allocations: 0 / 499.8 MB, free: 2.922 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008145/0.4732, allocations: 231.8 kB / 0.4883 GB, free: 2.695 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.003219/0.4764, allocations: 1.74 MB / 0.49 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.193/0.6694, allocations: 1.012 MB / 0.491 GB, free: 107.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/0.6695, allocations: 2.031 kB / 0.491 GB, free: 107.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.671, allocations: 0.558 MB / 0.4916 GB, free: 107.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.672, allocations: 168.3 kB / 0.4917 GB, free: 107.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.675, allocations: 2.599 MB / 0.4943 GB, free: 105.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.6754, allocations: 0.9042 MB / 0.4951 GB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003465/0.6757, allocations: 76.69 kB / 0.4952 GB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002717/0.676, allocations: 230.6 kB / 0.4954 GB, free: 104.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.676, allocations: 8 kB / 0.4954 GB, free: 104.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.709, allocations: 17.84 MB / 0.5129 GB, free: 99.21 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001326/0.7092, allocations: 207.3 kB / 0.5131 GB, free: 98.97 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.566/3.276, allocations: 0 / 0.5131 GB, free: 98.97 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat