Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 92.39 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003606, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2734, allocations: 50.42 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1121/0.3856, allocations: 83.36 MB / 484.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.3859, allocations: 79.97 kB / 485 MB, free: 12.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04386/0.4298, allocations: 15.69 MB / 0.489 GB, free: 13.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.4298, allocations: 0 / 0.489 GB, free: 13.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.925e-05/0.4299, allocations: 16 kB / 0.489 GB, free: 13.15 MB / 378.7 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.002279/0.4321, allocations: 1.089 MB / 0.4901 GB, free: 12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.354e-05/0.4322, allocations: 8.031 kB / 0.4901 GB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001945/0.4324, allocations: 103.7 kB / 0.4902 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.4326, allocations: 98.97 kB / 0.4903 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007652/0.4334, allocations: 486.5 kB / 0.4907 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.4336, allocations: 108.7 kB / 0.4908 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.688e-05/0.4337, allocations: 52 kB / 0.4909 GB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.4352, allocations: 0.8166 MB / 0.4917 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.4352, allocations: 3.953 kB / 0.4917 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/0.4353, allocations: 28 kB / 0.4917 GB, free: 10.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.4353, allocations: 12 kB / 0.4917 GB, free: 10.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.4367, allocations: 0.5517 MB / 0.4922 GB, free: 9.582 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003694/0.4404, allocations: 2.073 MB / 0.4943 GB, free: 7.418 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.4421, allocations: 0.6207 MB / 0.4949 GB, free: 6.785 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.08e-05/0.4421, allocations: 17.64 kB / 0.4949 GB, free: 6.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008276/0.443, allocations: 355 kB / 0.4952 GB, free: 6.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 2.685e-06/0.443, allocations: 4 kB / 0.4952 GB, free: 6.406 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.005594/0.4486, allocations: 1.67 MB / 0.4969 GB, free: 4.688 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004851/0.4491, allocations: 0.8272 MB / 0.4977 GB, free: 3.664 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007274/0.4498, allocations: 0.5151 MB / 0.4982 GB, free: 3.141 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.251e-05/0.4499, allocations: 37.7 kB / 0.4982 GB, free: 3.098 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/0.4502, allocations: 336.7 kB / 0.4985 GB, free: 2.766 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.4504, allocations: 201.1 kB / 0.4987 GB, free: 2.566 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.128e-05/0.4505, allocations: 12 kB / 0.4987 GB, free: 2.555 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003062/0.4508, allocations: 382.7 kB / 0.4991 GB, free: 2.172 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000576/0.4514, allocations: 233.2 kB / 0.4993 GB, free: 1.941 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008565/0.4522, allocations: 0.5412 MB / 0.4999 GB, free: 1.285 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007453/0.453, allocations: 336.2 kB / 0.5002 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.941e-05/0.4531, allocations: 4 kB / 0.5002 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.2399/0.693, allocations: 0.9657 MB / 0.5011 GB, free: 94.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.793e-05/0.6931, allocations: 62.45 kB / 0.5012 GB, free: 94.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.6931, allocations: 2.406 kB / 0.5012 GB, free: 94.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/0.6942, allocations: 225.6 kB / 0.5014 GB, free: 94.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008411/0.695, allocations: 130.8 kB / 0.5015 GB, free: 94.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006397/0.7014, allocations: 4.344 MB / 0.5058 GB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000783/0.7022, allocations: 93.44 kB / 0.5059 GB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.228e-05/0.7023, allocations: 21.45 kB / 0.5059 GB, free: 92.2 MB / 378.7 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 (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.0003967/0.7027, allocations: 212.4 kB / 0.5061 GB, free: 92.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003016/0.703, allocations: 80.77 kB / 0.5062 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.7032, allocations: 86.42 kB / 0.5062 GB, free: 92.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.7032, allocations: 7.266 kB / 0.5062 GB, free: 92.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.7032, allocations: 0 / 0.5062 GB, free: 92.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002272/0.7055, allocations: 1.126 MB / 0.5073 GB, free: 91.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.7087, allocations: 1.626 MB / 0.5089 GB, free: 91.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.7087, allocations: 0 / 0.5089 GB, free: 91.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007164/0.7094, allocations: 120.9 kB / 0.509 GB, free: 91.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005077/0.7099, allocations: 181.9 kB / 0.5092 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.776e-05/0.71, allocations: 14.31 kB / 0.5092 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004175/0.7142, allocations: 3.72 MB / 0.5129 GB, free: 88.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.7142, allocations: 0 / 0.5129 GB, free: 88.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/0.7165, allocations: 1.115 MB / 0.514 GB, free: 88.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002854/0.7168, allocations: 217 kB / 0.5142 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002728/0.717, allocations: 17.34 kB / 0.5142 GB, free: 87.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004699/0.7175, allocations: 54.66 kB / 0.5142 GB, free: 87.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.7177, allocations: 58.44 kB / 0.5143 GB, free: 87.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-05/0.7177, allocations: 14.53 kB / 0.5143 GB, free: 87.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004152/0.7181, allocations: 415.8 kB / 0.5147 GB, free: 87.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7181, allocations: 0 / 0.5147 GB, free: 87.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009467/0.7191, allocations: 272.4 kB / 0.515 GB, free: 87.61 MB / 378.7 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 (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.002493/0.7216, allocations: 1.708 MB / 0.5166 GB, free: 86.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.7236, allocations: 1.07 MB / 0.5177 GB, free: 85.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.7236, allocations: 0 / 0.5177 GB, free: 85.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008118/0.7244, allocations: 0.5807 MB / 0.5182 GB, free: 85.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007092/0.7251, allocations: 190.8 kB / 0.5184 GB, free: 85.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003285/0.7284, allocations: 3.386 MB / 0.5217 GB, free: 83.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.7287, allocations: 0.9416 MB / 0.5226 GB, free: 82.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003733/0.7291, allocations: 74.97 kB / 0.5227 GB, free: 82.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.7294, allocations: 262.2 kB / 0.523 GB, free: 82.09 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.7294, allocations: 0 / 0.523 GB, free: 82.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03486/0.7643, allocations: 20.35 MB / 0.5428 GB, free: 66.25 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001377/0.7645, allocations: 208.6 kB / 0.543 GB, free: 66.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.888/3.653, allocations: 0 / 0.543 GB, free: 66.01 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat