Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.001041/0.001041, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008129/0.000813, allocations: 78.73 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.769e-05/2.771e-05, allocations: 7.984 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.08882, allocations: 47.56 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3124/0.4013, allocations: 82.3 MB / 452.4 MB, free: 10.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.4015, allocations: 71.72 kB / 452.5 MB, free: 10.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04114/0.4427, allocations: 16.44 MB / 468.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4427, allocations: 0 / 468.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.473e-05/0.4428, allocations: 20 kB / 468.9 MB, free: 11.84 MB / 346.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.001699/0.4445, allocations: 1.077 MB / 470 MB, free: 10.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.4445, allocations: 8.031 kB / 470 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001548/0.4447, allocations: 119.5 kB / 470.1 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.4449, allocations: 106.9 kB / 470.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000762/0.4456, allocations: 0.5284 MB / 470.8 MB, free: 9.895 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001755/0.4458, allocations: 154.3 kB / 470.9 MB, free: 9.727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.302e-05/0.4459, allocations: 67.91 kB / 471 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.447, allocations: 0.7964 MB / 471.8 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.447, allocations: 0 / 471.8 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.99e-05/0.4471, allocations: 28 kB / 471.8 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.4471, allocations: 12 kB / 471.8 MB, free: 8.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008172/0.4479, allocations: 0.505 MB / 472.3 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002998/0.4509, allocations: 2.131 MB / 474.5 MB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009855/0.4519, allocations: 0.9049 MB / 475.4 MB, free: 4.992 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004249/0.4524, allocations: 335 kB / 475.7 MB, free: 4.664 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.809e-05/0.4524, allocations: 16.77 kB / 475.7 MB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.4525, allocations: 51.28 kB / 475.8 MB, free: 4.586 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 2.034e-06/0.4525, allocations: 0 / 475.8 MB, free: 4.586 MB / 346.7 MB Notification: Performance of matching and sorting (n=74): time 0.001949/0.4544, allocations: 0.8851 MB / 476.6 MB, free: 3.684 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003588/0.4548, allocations: 0.8235 MB / 477.5 MB, free: 2.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006225/0.4554, allocations: 0.5505 MB / 478 MB, free: 2.102 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.4555, allocations: 53.64 kB / 478.1 MB, free: 2.043 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.4557, allocations: 338.9 kB / 478.4 MB, free: 1.707 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.4559, allocations: 260.1 kB / 478.7 MB, free: 1.449 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-05/0.4559, allocations: 12 kB / 478.7 MB, free: 1.438 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4561, allocations: 398.7 kB / 479.1 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003796/0.4565, allocations: 213.6 kB / 479.3 MB, free: 0.832 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005684/0.457, allocations: 0.4899 MB / 479.8 MB, free: 248 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004594/0.4575, allocations: 349.6 kB / 480.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4575, allocations: 0 / 480.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00199/0.4595, allocations: 1.038 MB / 481.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.377e-05/0.4596, allocations: 89.11 kB / 481.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4596, allocations: 4 kB / 481.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005773/0.4602, allocations: 207.2 kB / 481.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006144/0.4608, allocations: 151.8 kB / 481.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00589/0.4667, allocations: 6.235 MB / 487.8 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008327/0.4676, allocations: 107.4 kB / 487.9 MB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-05/0.4677, allocations: 27.98 kB / 487.9 MB, free: 7.441 MB / 362.7 MB 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.0001817/0.4679, allocations: 152.9 kB / 488.1 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.468, allocations: 87.06 kB / 488.2 MB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002124/0.4682, allocations: 96.02 kB / 488.3 MB, free: 7.098 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.4682, allocations: 8 kB / 488.3 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.4682, allocations: 0 / 488.3 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001897/0.4701, allocations: 1.174 MB / 489.5 MB, free: 5.801 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003264/0.4734, allocations: 1.882 MB / 491.3 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.4734, allocations: 0 / 491.3 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006682/0.4741, allocations: 144 kB / 491.5 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004049/0.4745, allocations: 174.5 kB / 491.7 MB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.72e-05/0.4746, allocations: 16 kB / 491.7 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005019/0.4796, allocations: 4.782 MB / 496.4 MB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/0.4796, allocations: 7.969 kB / 496.5 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002467/0.4821, allocations: 1.293 MB / 497.7 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003981/0.4825, allocations: 239.9 kB / 498 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.876e-05/0.4826, allocations: 24 kB / 498 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005293/0.4832, allocations: 67.89 kB / 498.1 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.4834, allocations: 56.69 kB / 498.1 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.441e-05/0.4834, allocations: 23.98 kB / 498.2 MB, free: 12.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005545/0.484, allocations: 443.2 kB / 498.6 MB, free: 12.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.484, allocations: 0 / 498.6 MB, free: 12.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008992/0.4849, allocations: 287.7 kB / 498.9 MB, free: 11.87 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.002684/0.4876, allocations: 1.873 MB / 0.489 GB, free: 9.961 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.4892, allocations: 1.239 MB / 0.4902 GB, free: 8.633 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4892, allocations: 0 / 0.4902 GB, free: 8.633 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.4903, allocations: 0.7307 MB / 0.4909 GB, free: 7.863 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009725/0.4912, allocations: 205.4 kB / 0.4911 GB, free: 7.668 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002616/0.4939, allocations: 1.399 MB / 0.4925 GB, free: 6.223 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005048/0.4944, allocations: 0.9675 MB / 0.4934 GB, free: 5.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000444/0.4948, allocations: 90.22 kB / 0.4935 GB, free: 5.141 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004107/0.4953, allocations: 295.3 kB / 0.4938 GB, free: 4.852 MB / 378.7 MB Notification: Performance of SimCode: time 1.272e-06/0.4953, allocations: 0 / 0.4938 GB, free: 4.852 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04331/0.5386, allocations: 22.78 MB / 0.516 GB, free: 14.04 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.5388, allocations: 172 kB / 0.5162 GB, free: 13.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.563/3.102, allocations: 0 / 0.5162 GB, free: 13.82 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat