Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.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.OneMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008336/0.0008336, allocations: 98.47 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002372/0.0002373, allocations: 4 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2362, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1026/0.3389, allocations: 81.82 MB / 491.3 MB, free: 8.777 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/0.3392, allocations: 83.94 kB / 491.4 MB, free: 8.695 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02587/0.365, allocations: 10.01 MB / 0.4897 GB, free: 14.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3651, allocations: 0 / 0.4897 GB, free: 14.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.59e-05/0.3651, allocations: 12 kB / 0.4897 GB, free: 14.6 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001642/0.3668, allocations: 0.8154 MB / 0.4905 GB, free: 13.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3668, allocations: 8.031 kB / 0.4905 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001665/0.367, allocations: 83.08 kB / 0.4906 GB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.3672, allocations: 63.25 kB / 0.4906 GB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006423/0.3678, allocations: 390 kB / 0.491 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.3679, allocations: 66.3 kB / 0.491 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.368, allocations: 36 kB / 0.4911 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009477/0.369, allocations: 0.493 MB / 0.4916 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.369, allocations: 0 / 0.4916 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.012e-05/0.3691, allocations: 16 kB / 0.4916 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.3691, allocations: 8 kB / 0.4916 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008889/0.37, allocations: 378.4 kB / 0.4919 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002613/0.3726, allocations: 1.295 MB / 0.4932 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008395/0.3734, allocations: 448.4 kB / 0.4936 GB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.972e-05/0.3735, allocations: 11.98 kB / 0.4937 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.3735, allocations: 50.5 kB / 0.4937 GB, free: 10.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.463e-06/0.3736, allocations: 0 / 0.4937 GB, free: 10.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001696/0.3753, allocations: 0.7684 MB / 0.4945 GB, free: 9.371 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002301/0.3755, allocations: 449 kB / 0.4949 GB, free: 8.828 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004968/0.376, allocations: 405.1 kB / 0.4953 GB, free: 8.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.892e-05/0.3761, allocations: 41.64 kB / 0.4953 GB, free: 8.383 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.3763, allocations: 240.4 kB / 0.4955 GB, free: 8.141 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.3764, allocations: 134.1 kB / 0.4957 GB, free: 8.008 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.983e-05/0.3764, allocations: 8 kB / 0.4957 GB, free: 8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3766, allocations: 354.8 kB / 0.496 GB, free: 7.645 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000411/0.377, allocations: 159.9 kB / 0.4962 GB, free: 7.488 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005492/0.3775, allocations: 297.4 kB / 0.4964 GB, free: 7.148 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005001/0.378, allocations: 216.9 kB / 0.4967 GB, free: 6.934 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.3781, allocations: 0 / 0.4967 GB, free: 6.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001134/0.3792, allocations: 0.4962 MB / 0.4971 GB, free: 6.418 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.876e-05/0.3793, allocations: 38.34 kB / 0.4972 GB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3793, allocations: 0 / 0.4972 GB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002106/0.3795, allocations: 53.7 kB / 0.4972 GB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004388/0.3799, allocations: 87.88 kB / 0.4973 GB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002743/0.3827, allocations: 2.764 MB / 0.5 GB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000427/0.3831, allocations: 63.66 kB / 0.5001 GB, free: 3.137 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.3832, allocations: 15.94 kB / 0.5001 GB, free: 3.121 MB / 378.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 35 * 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.0002473/0.3834, allocations: 173.4 kB / 0.5002 GB, free: 2.945 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.3835, allocations: 51.44 kB / 0.5003 GB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.3837, allocations: 56.75 kB / 0.5004 GB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3837, allocations: 4 kB / 0.5004 GB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.3837, allocations: 0 / 0.5004 GB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009711/0.3847, allocations: 0.7661 MB / 0.5011 GB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001708/0.3864, allocations: 1.057 MB / 0.5021 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3864, allocations: 0 / 0.5021 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004522/0.3869, allocations: 99.88 kB / 0.5022 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3869, allocations: 0 / 0.5022 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.3869, allocations: 15.98 kB / 0.5022 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.3869, allocations: 3.953 kB / 0.5022 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3869, allocations: 0 / 0.5022 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.225/0.612, allocations: 0.7091 MB / 0.5029 GB, free: 93.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000512/0.6125, allocations: 163.5 kB / 0.5031 GB, free: 93.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/0.6127, allocations: 10.16 kB / 0.5031 GB, free: 93.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004653/0.6132, allocations: 35.83 kB / 0.5031 GB, free: 93.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.819e-05/0.6133, allocations: 25.78 kB / 0.5032 GB, free: 93.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.6133, allocations: 11.48 kB / 0.5032 GB, free: 93.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006006/0.6139, allocations: 320.9 kB / 0.5035 GB, free: 93.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.614, allocations: 0 / 0.5035 GB, free: 93.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008212/0.6148, allocations: 147.9 kB / 0.5036 GB, free: 93.71 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 36 * 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.002275/0.6171, allocations: 1.275 MB / 0.5049 GB, free: 93.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.6188, allocations: 0.6697 MB / 0.5055 GB, free: 92.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/0.6188, allocations: 4.141 kB / 0.5055 GB, free: 92.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005357/0.6194, allocations: 192.1 kB / 0.5057 GB, free: 92.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008766/0.6203, allocations: 133.6 kB / 0.5058 GB, free: 92.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003704/0.624, allocations: 1.644 MB / 0.5074 GB, free: 91.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/0.6245, allocations: 0.8435 MB / 0.5083 GB, free: 91.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004324/0.6249, allocations: 60.47 kB / 0.5083 GB, free: 91.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002912/0.6252, allocations: 172.8 kB / 0.5085 GB, free: 91.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.6252, allocations: 0 / 0.5085 GB, free: 91.14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0258/0.651, allocations: 12 MB / 0.5202 GB, free: 87.55 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001534/0.6512, allocations: 206.1 kB / 0.5204 GB, free: 87.31 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.15/2.801, allocations: 0 / 0.5204 GB, free: 87.31 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_OneMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_OneMass.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat does not exist to compare? outputFormat=mat