Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.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.PumpDropOut,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut",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.0009755/0.0009752, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.73/1.73, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008487/0.0008484, allocations: 90.69 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.471e-05/1.474e-05, allocations: 0 / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1212, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4196/0.5408, allocations: 81.47 MB / 444.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.5412, allocations: 71.47 kB / 444.7 MB, free: 14.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02734/0.5686, allocations: 10.23 MB / 454.9 MB, free: 5.758 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.736e-06/0.5686, allocations: 0 / 454.9 MB, free: 5.758 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.94e-05/0.5687, allocations: 8 kB / 454.9 MB, free: 5.75 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001361/0.57, allocations: 0.7623 MB / 455.7 MB, free: 4.973 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.5701, allocations: 8.031 kB / 455.7 MB, free: 4.965 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.5702, allocations: 67.25 kB / 455.8 MB, free: 4.898 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006868/0.5709, allocations: 401.2 kB / 456.2 MB, free: 4.516 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.5711, allocations: 50.83 kB / 456.2 MB, free: 4.461 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.68e-05/0.5711, allocations: 23.95 kB / 456.2 MB, free: 4.438 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005665/0.5717, allocations: 264.9 kB / 456.5 MB, free: 4.273 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006936/0.5724, allocations: 418.8 kB / 456.9 MB, free: 3.906 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.5725, allocations: 0 / 456.9 MB, free: 3.906 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.635e-05/0.5725, allocations: 4 kB / 456.9 MB, free: 3.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.5725, allocations: 8 kB / 456.9 MB, free: 3.895 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.5749, allocations: 1.268 MB / 458.2 MB, free: 2.852 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007391/0.5756, allocations: 418.1 kB / 458.6 MB, free: 2.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002367/0.5759, allocations: 147.2 kB / 458.7 MB, free: 2.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.521e-05/0.5759, allocations: 4 kB / 458.7 MB, free: 2.426 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.576, allocations: 45.75 kB / 458.8 MB, free: 2.379 MB / 330.7 MB Notification: Performance of pre-optimization done (n=38): time 1.523e-06/0.576, allocations: 4 kB / 458.8 MB, free: 2.375 MB / 330.7 MB Notification: Performance of matching and sorting (n=38): time 0.0007864/0.5768, allocations: 365.1 kB / 459.2 MB, free: 2.094 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002182/0.577, allocations: 444.8 kB / 459.6 MB, free: 1.559 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004248/0.5774, allocations: 363.9 kB / 459.9 MB, free: 1.273 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.5775, allocations: 25.7 kB / 460 MB, free: 1.242 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.5777, allocations: 254.8 kB / 460.2 MB, free: 1.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.767e-05/0.5778, allocations: 119.3 kB / 460.3 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.941e-05/0.5778, allocations: 0 / 460.3 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.578, allocations: 356 kB / 460.7 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.5782, allocations: 104.9 kB / 460.8 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.5785, allocations: 237.8 kB / 461 MB, free: 356 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.5787, allocations: 132.3 kB / 461.1 MB, free: 272 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5787, allocations: 0 / 461.1 MB, free: 272 kB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006638/0.5793, allocations: 391.2 kB / 461.5 MB, free: 15.97 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.5794, allocations: 29.7 kB / 461.6 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.5794, allocations: 4 kB / 461.6 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002347/0.5797, allocations: 55 kB / 461.6 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004077/0.5801, allocations: 95.91 kB / 461.7 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/0.5823, allocations: 2.638 MB / 464.3 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003369/0.5826, allocations: 51.8 kB / 464.4 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.305e-05/0.5827, allocations: 15.73 kB / 464.4 MB, free: 13.02 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002088/0.5829, allocations: 125 kB / 464.5 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006501/0.5835, allocations: 371.7 kB / 464.9 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.107e-05/0.5836, allocations: 47.44 kB / 464.9 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.567e-05/0.5837, allocations: 49.31 kB / 465 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.5838, allocations: 4 kB / 465 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.5838, allocations: 3.938 kB / 465 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006648/0.5844, allocations: 0.6598 MB / 465.7 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.5858, allocations: 0.9206 MB / 466.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5858, allocations: 0 / 466.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004791/0.5863, allocations: 99.38 kB / 466.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.165e-06/0.5863, allocations: 0 / 466.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.5863, allocations: 8 kB / 466.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.5863, allocations: 4 kB / 466.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.5863, allocations: 0 / 466.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007582/0.5871, allocations: 0.5588 MB / 467.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.5873, allocations: 168 kB / 467.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.846e-05/0.5874, allocations: 0 / 467.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003018/0.5877, allocations: 32.03 kB / 467.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.542e-05/0.5878, allocations: 23.84 kB / 467.5 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.5878, allocations: 11.06 kB / 467.5 MB, free: 10.33 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003204/0.5881, allocations: 278.8 kB / 467.7 MB, free: 10.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5881, allocations: 0 / 467.7 MB, free: 10.12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004784/0.5886, allocations: 147.4 kB / 467.9 MB, free: 9.984 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001162/0.5898, allocations: 1.111 MB / 469 MB, free: 9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008384/0.5906, allocations: 0.55 MB / 469.6 MB, free: 8.523 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5906, allocations: 0 / 469.6 MB, free: 8.523 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002125/0.5909, allocations: 150.7 kB / 469.7 MB, free: 8.422 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000584/0.5915, allocations: 124.5 kB / 469.8 MB, free: 8.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.593, allocations: 0.7263 MB / 470.5 MB, free: 7.625 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.5934, allocations: 0.8468 MB / 471.4 MB, free: 6.75 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002299/0.5937, allocations: 56.25 kB / 471.5 MB, free: 6.691 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002354/0.5939, allocations: 175.5 kB / 471.6 MB, free: 6.641 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5939, allocations: 0 / 471.6 MB, free: 6.641 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03458/0.6285, allocations: 10.77 MB / 482.4 MB, free: 11.86 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002471/0.6288, allocations: 135.6 kB / 482.5 MB, free: 11.67 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.31/2.939, allocations: 0 / 482.5 MB, free: 11.67 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat does not exist to compare? outputFormat=mat