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.001035/0.001035, allocations: 179.3 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.36/1.36, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.001083/0.001083, allocations: 98.34 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002791, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2573, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1042/0.3616, allocations: 82.72 MB / 484.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.3619, allocations: 75.95 kB / 484.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03944/0.4013, allocations: 13.86 MB / 498.2 MB, free: 15.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4014, allocations: 0 / 498.2 MB, free: 15.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.726e-05/0.4014, allocations: 12 kB / 498.2 MB, free: 15.7 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002127/0.4036, allocations: 1.008 MB / 499.3 MB, free: 14.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.4036, allocations: 8.031 kB / 499.3 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002032/0.4038, allocations: 91.52 kB / 499.3 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.404, allocations: 94.91 kB / 499.4 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007779/0.4048, allocations: 459.8 kB / 499.9 MB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.405, allocations: 96.41 kB / 500 MB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.597e-05/0.4051, allocations: 51.89 kB / 0.4883 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.4063, allocations: 0.6678 MB / 0.489 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.4063, allocations: 0 / 0.489 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.473e-05/0.4064, allocations: 24 kB / 0.489 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.4064, allocations: 15.94 kB / 0.489 GB, free: 13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.4075, allocations: 491.7 kB / 0.4895 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003279/0.4108, allocations: 1.902 MB / 0.4913 GB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00213/0.413, allocations: 0.7602 MB / 0.4921 GB, free: 9.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.446e-05/0.413, allocations: 12.55 kB / 0.4921 GB, free: 9.719 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.4131, allocations: 51.11 kB / 0.4921 GB, free: 9.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 2.375e-06/0.4131, allocations: 0 / 0.4921 GB, free: 9.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.005203/0.4183, allocations: 1.614 MB / 0.4937 GB, free: 7.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002608/0.4186, allocations: 0.5683 MB / 0.4943 GB, free: 7.273 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006851/0.4193, allocations: 478.3 kB / 0.4947 GB, free: 6.801 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.799e-05/0.4194, allocations: 41.64 kB / 0.4948 GB, free: 6.754 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.4196, allocations: 288.7 kB / 0.495 GB, free: 6.469 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.4198, allocations: 197 kB / 0.4952 GB, free: 6.273 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.082e-05/0.4198, allocations: 12 kB / 0.4952 GB, free: 6.262 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.42, allocations: 370.8 kB / 0.4956 GB, free: 5.891 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005296/0.4205, allocations: 217 kB / 0.4958 GB, free: 5.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000711/0.4212, allocations: 428.5 kB / 0.4962 GB, free: 5.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006297/0.4219, allocations: 278.7 kB / 0.4965 GB, free: 4.906 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.934e-06/0.4219, allocations: 4 kB / 0.4965 GB, free: 4.902 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002417/0.4243, allocations: 0.8693 MB / 0.4973 GB, free: 4.012 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/0.4244, allocations: 33.69 kB / 0.4974 GB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.4244, allocations: 4 kB / 0.4974 GB, free: 3.969 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009873/0.4254, allocations: 222.4 kB / 0.4976 GB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008332/0.4262, allocations: 139.8 kB / 0.4977 GB, free: 3.605 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1996/0.6259, allocations: 5.226 MB / 0.5028 GB, free: 94.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008347/0.6268, allocations: 83.97 kB / 0.5029 GB, free: 94.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.456e-05/0.6268, allocations: 19.73 kB / 0.5029 GB, free: 94.17 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.0003656/0.6272, allocations: 204.1 kB / 0.5031 GB, free: 94.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.6273, allocations: 70.7 kB / 0.5032 GB, free: 94.06 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002489/0.6298, allocations: 0.8405 MB / 0.504 GB, free: 93.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.6298, allocations: 6.875 kB / 0.504 GB, free: 93.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.6298, allocations: 0 / 0.504 GB, free: 93.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002158/0.632, allocations: 1.098 MB / 0.5051 GB, free: 93.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003349/0.6354, allocations: 1.584 MB / 0.5066 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.6354, allocations: 6.078 kB / 0.5066 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009079/0.6363, allocations: 144 kB / 0.5068 GB, free: 93.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000854/0.6372, allocations: 185 kB / 0.5069 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/0.6372, allocations: 13.88 kB / 0.5069 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004188/0.6414, allocations: 3.596 MB / 0.5105 GB, free: 90.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.6414, allocations: 0 / 0.5105 GB, free: 90.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002533/0.644, allocations: 1.16 MB / 0.5116 GB, free: 90.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002467/0.6442, allocations: 203.8 kB / 0.5118 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.816e-05/0.6443, allocations: 16.66 kB / 0.5118 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.6448, allocations: 46.3 kB / 0.5118 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.983e-05/0.6449, allocations: 41.45 kB / 0.5119 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.6449, allocations: 16.91 kB / 0.5119 GB, free: 90.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003902/0.6453, allocations: 385.9 kB / 0.5123 GB, free: 90.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6453, allocations: 0 / 0.5123 GB, free: 90.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007494/0.6461, allocations: 233.1 kB / 0.5125 GB, free: 90.03 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.00272/0.6488, allocations: 1.724 MB / 0.5142 GB, free: 89.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001813/0.6506, allocations: 1.038 MB / 0.5152 GB, free: 88.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.6506, allocations: 3.469 kB / 0.5152 GB, free: 88.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009069/0.6515, allocations: 0.5542 MB / 0.5157 GB, free: 88.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006622/0.6522, allocations: 171.5 kB / 0.5159 GB, free: 88.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.6545, allocations: 2.59 MB / 0.5184 GB, free: 86.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.6548, allocations: 0.9053 MB / 0.5193 GB, free: 85.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002959/0.6551, allocations: 78.39 kB / 0.5194 GB, free: 85.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002369/0.6553, allocations: 226.2 kB / 0.5196 GB, free: 85.38 MB / 378.7 MB Notification: Performance of SimCode: time 3.9e-07/0.6553, allocations: 0 / 0.5196 GB, free: 85.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03188/0.6872, allocations: 17.85 MB / 0.537 GB, free: 72.04 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001609/0.6874, allocations: 204 kB / 0.5372 GB, free: 71.81 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.602/3.29, allocations: 0 / 0.5372 GB, free: 71.81 MB / 378.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