Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut,fileNamePrefix="Modelica_3_2_3_cpp_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.001427/0.001427, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.129/2.129, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001196/0.001195, allocations: 96.03 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.044e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3477, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1347/0.4824, allocations: 81.25 MB / 443.7 MB, free: 4.965 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.4828, allocations: 75.95 kB / 443.7 MB, free: 4.891 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04378/0.5266, allocations: 10.24 MB / 454 MB, free: 10.65 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5267, allocations: 0 / 454 MB, free: 10.65 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.219e-05/0.5267, allocations: 8 kB / 454 MB, free: 10.64 MB / 347.1 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.001795/0.5285, allocations: 0.7599 MB / 454.8 MB, free: 9.832 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.5286, allocations: 8.031 kB / 454.8 MB, free: 9.824 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.5288, allocations: 67.25 kB / 454.8 MB, free: 9.758 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008403/0.5296, allocations: 399.9 kB / 455.2 MB, free: 9.324 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.5298, allocations: 50.83 kB / 455.3 MB, free: 9.27 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.305e-05/0.5299, allocations: 23.95 kB / 455.3 MB, free: 9.246 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008383/0.5307, allocations: 265.5 kB / 455.5 MB, free: 8.984 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009095/0.5316, allocations: 409.3 kB / 455.9 MB, free: 8.531 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.5317, allocations: 0 / 455.9 MB, free: 8.531 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.423e-05/0.5317, allocations: 4 kB / 456 MB, free: 8.527 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.5318, allocations: 8 kB / 456 MB, free: 8.52 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003459/0.5352, allocations: 1.266 MB / 457.2 MB, free: 7.191 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.5365, allocations: 418.9 kB / 457.6 MB, free: 6.754 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000369/0.5369, allocations: 148.8 kB / 457.8 MB, free: 6.605 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.12e-05/0.5369, allocations: 15.98 kB / 457.8 MB, free: 6.59 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.537, allocations: 38.56 kB / 457.8 MB, free: 6.543 MB / 347.1 MB Notification: Performance of pre-optimization done (n=38): time 2.755e-06/0.537, allocations: 0 / 457.8 MB, free: 6.543 MB / 347.1 MB Notification: Performance of matching and sorting (n=38): time 0.001179/0.5382, allocations: 364.2 kB / 458.2 MB, free: 6.18 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002117/0.5384, allocations: 441 kB / 458.6 MB, free: 5.645 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006913/0.5391, allocations: 369.2 kB / 459 MB, free: 5.273 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.581e-05/0.5392, allocations: 25.7 kB / 459 MB, free: 5.242 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002348/0.5394, allocations: 283 kB / 459.3 MB, free: 4.965 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.5396, allocations: 126.1 kB / 459.4 MB, free: 4.84 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.954e-05/0.5396, allocations: 0 / 459.4 MB, free: 4.84 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5398, allocations: 322.8 kB / 459.7 MB, free: 4.516 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000384/0.5402, allocations: 100 kB / 459.8 MB, free: 4.418 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004876/0.5407, allocations: 246.5 kB / 460.1 MB, free: 4.125 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/0.5411, allocations: 132.8 kB / 460.2 MB, free: 4 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.5411, allocations: 0 / 460.2 MB, free: 4 MB / 347.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001211/0.5423, allocations: 359 kB / 460.5 MB, free: 3.637 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.8e-05/0.5424, allocations: 33.7 kB / 460.6 MB, free: 3.598 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.5424, allocations: 0 / 460.6 MB, free: 3.598 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004039/0.5428, allocations: 61.7 kB / 460.6 MB, free: 3.531 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008104/0.5437, allocations: 95.88 kB / 460.7 MB, free: 3.438 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003096/0.5468, allocations: 2.637 MB / 463.4 MB, free: 0.5664 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007351/0.5475, allocations: 47.7 kB / 463.4 MB, free: 0.5195 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.814e-05/0.5476, allocations: 14.06 kB / 463.4 MB, free: 0.5078 MB / 347.1 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.000269/0.5479, allocations: 134.7 kB / 463.6 MB, free: 380 kB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001034/0.5489, allocations: 367.5 kB / 463.9 MB, free: 0 / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.5491, allocations: 51.59 kB / 464 MB, free: 15.95 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001573/0.5493, allocations: 45.06 kB / 464 MB, free: 15.9 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.5493, allocations: 4 kB / 464 MB, free: 15.89 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.5493, allocations: 0 / 464 MB, free: 15.89 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008676/0.5502, allocations: 0.6723 MB / 464.7 MB, free: 15.12 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.5522, allocations: 0.9134 MB / 465.6 MB, free: 14.16 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.5522, allocations: 3.984 kB / 465.6 MB, free: 14.16 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008704/0.5531, allocations: 99.88 kB / 465.7 MB, free: 14.06 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.824e-06/0.5531, allocations: 0 / 465.7 MB, free: 14.06 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.282e-05/0.5532, allocations: 4 kB / 465.7 MB, free: 14.05 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.5532, allocations: 0 / 465.7 MB, free: 14.05 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.5532, allocations: 0 / 465.7 MB, free: 14.05 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.5544, allocations: 0.5576 MB / 466.3 MB, free: 13.48 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000312/0.5548, allocations: 164.4 kB / 466.4 MB, free: 13.3 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.111e-05/0.5549, allocations: 0 / 466.4 MB, free: 13.3 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005418/0.5554, allocations: 37.64 kB / 466.5 MB, free: 13.26 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.5555, allocations: 23.95 kB / 466.5 MB, free: 13.24 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.494e-05/0.5556, allocations: 12 kB / 466.5 MB, free: 13.23 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0004717/0.5561, allocations: 279 kB / 466.8 MB, free: 12.96 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5561, allocations: 0 / 466.8 MB, free: 12.96 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0007012/0.5568, allocations: 139.7 kB / 466.9 MB, free: 12.82 MB / 363.1 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.001603/0.5584, allocations: 1.116 MB / 468 MB, free: 11.68 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.5597, allocations: 0.5572 MB / 468.6 MB, free: 11.09 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.5597, allocations: 0 / 468.6 MB, free: 11.09 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003667/0.5601, allocations: 147.9 kB / 468.7 MB, free: 10.95 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009518/0.5611, allocations: 115.5 kB / 468.8 MB, free: 10.84 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.5635, allocations: 0.7519 MB / 469.6 MB, free: 10.05 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005264/0.564, allocations: 0.8546 MB / 470.4 MB, free: 9.164 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004399/0.5645, allocations: 175.4 kB / 470.6 MB, free: 8.996 MB / 363.1 MB Notification: Performance of SimCode: time 1.273e-06/0.5645, allocations: 0 / 470.6 MB, free: 8.996 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.8/3.364, allocations: 10.59 MB / 481.2 MB, free: 14.44 MB / 379.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpDropOut.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpDropOut_res.mat does not exist to compare? outputFormat=mat