Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009768/0.0009769, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000928/0.000928, allocations: 94.52 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.173e-05/2.199e-05, allocations: 4 kB / 343.8 MB, free: 8.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.133, allocations: 51.48 MB / 395.3 MB, free: 4.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4183/0.5513, allocations: 81.72 MB / 477 MB, free: 10.58 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.5516, allocations: 78.41 kB / 477.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03955/0.5912, allocations: 16.01 MB / 493.1 MB, free: 14.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.5913, allocations: 9.875 kB / 493.1 MB, free: 14.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.255e-05/0.5913, allocations: 12 kB / 493.1 MB, free: 14.06 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002119/0.5934, allocations: 1.08 MB / 494.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/0.5935, allocations: 8.031 kB / 494.2 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002086/0.5937, allocations: 110.8 kB / 494.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009072/0.5946, allocations: 0.5267 MB / 494.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002246/0.5949, allocations: 130 kB / 494.9 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.61e-05/0.595, allocations: 32 kB / 495 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008851/0.5959, allocations: 479.1 kB / 495.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.597, allocations: 0.6942 MB / 496.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.5971, allocations: 7.125 kB / 496.1 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.549e-05/0.5971, allocations: 4 kB / 496.1 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.5971, allocations: 12 kB / 496.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003454/0.6006, allocations: 1.98 MB / 498.1 MB, free: 9.727 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.6017, allocations: 0.8728 MB / 499 MB, free: 8.988 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004215/0.6021, allocations: 312.2 kB / 499.3 MB, free: 8.805 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.588e-05/0.6022, allocations: 16.75 kB / 499.3 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.172e-05/0.6023, allocations: 49.72 kB / 499.4 MB, free: 8.738 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 2.935e-06/0.6023, allocations: 0 / 499.4 MB, free: 8.738 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.002138/0.6044, allocations: 0.8348 MB / 0.4885 GB, free: 8.074 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005206/0.605, allocations: 0.8302 MB / 0.4893 GB, free: 7.055 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006775/0.6056, allocations: 0.4941 MB / 0.4898 GB, free: 6.684 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.933e-05/0.6057, allocations: 29.7 kB / 0.4898 GB, free: 6.648 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.606, allocations: 335.1 kB / 0.4901 GB, free: 6.445 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002465/0.6063, allocations: 246.9 kB / 0.4904 GB, free: 6.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.6063, allocations: 0 / 0.4904 GB, free: 6.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002259/0.6065, allocations: 381.4 kB / 0.4907 GB, free: 5.879 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003472/0.6069, allocations: 205.2 kB / 0.4909 GB, free: 5.762 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006376/0.6075, allocations: 474.1 kB / 0.4914 GB, free: 5.324 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000454/0.608, allocations: 248.8 kB / 0.4916 GB, free: 5.172 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.608, allocations: 4 kB / 0.4916 GB, free: 5.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002106/0.6101, allocations: 0.894 MB / 0.4925 GB, free: 4.461 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.833e-05/0.6102, allocations: 89.09 kB / 0.4926 GB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.6103, allocations: 0 / 0.4926 GB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006563/0.6109, allocations: 202.4 kB / 0.4928 GB, free: 4.164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006721/0.6116, allocations: 159.7 kB / 0.4929 GB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006764/0.6184, allocations: 6.026 MB / 0.4988 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009248/0.6193, allocations: 91.52 kB / 0.4989 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.84e-05/0.6194, allocations: 24 kB / 0.4989 GB, free: 13.41 MB / 378.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: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003364/0.6198, allocations: 143 kB / 0.4991 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002055/0.6218, allocations: 0.8421 MB / 0.4999 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001856/0.622, allocations: 86.25 kB / 0.5 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002557/0.6223, allocations: 84.03 kB / 0.5 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.6223, allocations: 8 kB / 0.5 GB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.6223, allocations: 0 / 0.5 GB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001951/0.6243, allocations: 1.138 MB / 0.5012 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003534/0.6278, allocations: 1.727 MB / 0.5028 GB, free: 9.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.6278, allocations: 0 / 0.5028 GB, free: 9.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007194/0.6286, allocations: 152 kB / 0.503 GB, free: 9.039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004469/0.629, allocations: 162.5 kB / 0.5031 GB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6e-05/0.6291, allocations: 12 kB / 0.5032 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005812/0.6349, allocations: 4.655 MB / 0.5077 GB, free: 3.859 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.635, allocations: 3.953 kB / 0.5077 GB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002741/0.6377, allocations: 1.219 MB / 0.5089 GB, free: 2.609 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005606/0.6383, allocations: 239.9 kB / 0.5091 GB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002068/0.6385, allocations: 8 kB / 0.5091 GB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006861/0.6392, allocations: 39.95 kB / 0.5092 GB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.6394, allocations: 64.69 kB / 0.5092 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.815e-05/0.6395, allocations: 23.98 kB / 0.5093 GB, free: 2.223 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007022/0.6402, allocations: 391.2 kB / 0.5096 GB, free: 1.848 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.6402, allocations: 0 / 0.5096 GB, free: 1.848 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001328/0.6415, allocations: 255.7 kB / 0.5099 GB, free: 1.598 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003098/0.6446, allocations: 1.803 MB / 0.5116 GB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001952/0.6466, allocations: 1.178 MB / 0.5128 GB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.6466, allocations: 0 / 0.5128 GB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.6478, allocations: 0.6954 MB / 0.5135 GB, free: 13.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001265/0.6491, allocations: 196.2 kB / 0.5137 GB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003545/0.6527, allocations: 1.315 MB / 0.5149 GB, free: 12.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007289/0.6534, allocations: 0.9521 MB / 0.5159 GB, free: 11.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005003/0.6539, allocations: 97.94 kB / 0.516 GB, free: 11.17 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004475/0.6544, allocations: 287.3 kB / 0.5162 GB, free: 10.89 MB / 394.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6544, allocations: 4 kB / 0.5162 GB, free: 10.89 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06376/0.7182, allocations: 20.62 MB / 0.5364 GB, free: 6.598 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/0.7184, allocations: 134.5 kB / 0.5365 GB, free: 6.406 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.786/3.504, allocations: 0 / 0.5365 GB, free: 6.406 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat