Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",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.0009866/0.0009866, allocations: 175.2 kB / 13.63 MB, free: 1.684 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.647/1.647, allocations: 221.4 MB / 235.5 MB, free: 2.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009936/0.0009937, allocations: 84.11 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.344e-05/2.346e-05, allocations: 0 / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.351/0.4622, allocations: 82.66 MB / 477 MB, free: 4.812 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.4625, allocations: 67.97 kB / 477.1 MB, free: 4.746 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03676/0.4992, allocations: 13.84 MB / 490.9 MB, free: 6.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4993, allocations: 0 / 490.9 MB, free: 6.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.408e-05/0.4993, allocations: 15.98 kB / 490.9 MB, free: 6.805 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.001563/0.5009, allocations: 0.904 MB / 491.8 MB, free: 5.844 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.5009, allocations: 8.031 kB / 491.8 MB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001407/0.5011, allocations: 95.52 kB / 491.9 MB, free: 5.734 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.5012, allocations: 94.91 kB / 492 MB, free: 5.641 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006631/0.5019, allocations: 440 kB / 492.5 MB, free: 5.168 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.5021, allocations: 96.41 kB / 492.6 MB, free: 5.062 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.418e-05/0.5022, allocations: 51.91 kB / 492.6 MB, free: 5.012 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008838/0.5031, allocations: 0.6171 MB / 493.2 MB, free: 4.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.5031, allocations: 0 / 493.2 MB, free: 4.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.154e-05/0.5031, allocations: 24 kB / 493.2 MB, free: 4.297 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.5032, allocations: 12 kB / 493.3 MB, free: 4.285 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006717/0.5038, allocations: 383.9 kB / 493.6 MB, free: 3.906 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002995/0.5068, allocations: 1.91 MB / 495.5 MB, free: 1.898 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/0.5086, allocations: 0.6723 MB / 496.2 MB, free: 1.199 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000363/0.509, allocations: 230.5 kB / 496.4 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.079e-05/0.509, allocations: 8.547 kB / 496.4 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.5091, allocations: 47.12 kB / 496.5 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 2.575e-06/0.5091, allocations: 4 kB / 496.5 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.001857/0.5109, allocations: 0.6961 MB / 497.2 MB, free: 196 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002509/0.5112, allocations: 0.5722 MB / 497.8 MB, free: 15.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000618/0.5118, allocations: 480.9 kB / 498.2 MB, free: 15.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.391e-05/0.5119, allocations: 41.7 kB / 498.3 MB, free: 14.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002042/0.5121, allocations: 280.7 kB / 498.5 MB, free: 14.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.5123, allocations: 201 kB / 498.7 MB, free: 14.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.342e-05/0.5123, allocations: 12 kB / 498.8 MB, free: 14.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.5125, allocations: 366.8 kB / 499.1 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000293/0.5128, allocations: 161.1 kB / 499.3 MB, free: 13.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004573/0.5133, allocations: 380.6 kB / 499.6 MB, free: 13.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003539/0.5136, allocations: 221.6 kB / 499.9 MB, free: 13.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.5136, allocations: 4 kB / 499.9 MB, free: 13.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001832/0.5155, allocations: 0.7755 MB / 0.4889 GB, free: 12.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.5155, allocations: 41.72 kB / 0.4889 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.5156, allocations: 4 kB / 0.4889 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008816/0.5164, allocations: 210.3 kB / 0.4892 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007641/0.5172, allocations: 143.8 kB / 0.4893 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006025/0.5233, allocations: 5.003 MB / 0.4942 GB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000724/0.524, allocations: 83.75 kB / 0.4943 GB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.708e-05/0.5241, allocations: 19.98 kB / 0.4943 GB, free: 6.555 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 () * 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.0001732/0.5243, allocations: 145 kB / 0.4944 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.5244, allocations: 75.23 kB / 0.4945 GB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001962/0.5264, allocations: 0.7537 MB / 0.4952 GB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.5264, allocations: 8 kB / 0.4952 GB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.5264, allocations: 0 / 0.4952 GB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001693/0.5281, allocations: 0.9919 MB / 0.4962 GB, free: 4.453 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002846/0.5309, allocations: 1.472 MB / 0.4976 GB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.531, allocations: 3.984 kB / 0.4976 GB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007938/0.5318, allocations: 131.8 kB / 0.4978 GB, free: 2.781 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006196/0.5324, allocations: 161.5 kB / 0.4979 GB, free: 2.617 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.5324, allocations: 12 kB / 0.4979 GB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004102/0.5366, allocations: 3.388 MB / 0.5012 GB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.5366, allocations: 0 / 0.5012 GB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002042/0.5386, allocations: 0.9881 MB / 0.5022 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003216/0.539, allocations: 208.1 kB / 0.5024 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.298e-05/0.5391, allocations: 16 kB / 0.5024 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004366/0.5395, allocations: 39.97 kB / 0.5025 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.5396, allocations: 52.61 kB / 0.5025 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.5397, allocations: 16 kB / 0.5025 GB, free: 13.59 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005136/0.5402, allocations: 385.5 kB / 0.5029 GB, free: 13.22 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5402, allocations: 0 / 0.5029 GB, free: 13.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007957/0.541, allocations: 227.7 kB / 0.5031 GB, free: 13 MB / 394.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.002405/0.5434, allocations: 1.568 MB / 0.5046 GB, free: 11.39 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001795/0.5452, allocations: 0.9168 MB / 0.5055 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.5453, allocations: 0 / 0.5055 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008096/0.5461, allocations: 0.4966 MB / 0.506 GB, free: 9.906 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007673/0.5469, allocations: 177.6 kB / 0.5062 GB, free: 9.738 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.549, allocations: 1.039 MB / 0.5072 GB, free: 8.656 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.5494, allocations: 0.9036 MB / 0.5081 GB, free: 7.723 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003166/0.5498, allocations: 73.14 kB / 0.5081 GB, free: 7.652 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003144/0.5501, allocations: 231.3 kB / 0.5084 GB, free: 7.43 MB / 394.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5501, allocations: 0 / 0.5084 GB, free: 7.43 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03534/0.5854, allocations: 17.96 MB / 0.5259 GB, free: 5.746 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.5856, allocations: 178 kB / 0.5261 GB, free: 5.527 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.609/3.194, allocations: 0 / 0.5261 GB, free: 5.527 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat