Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 98.98 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.00023, allocations: 8 kB / 306.8 MB, free: 1.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1009, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2928/0.3938, allocations: 86.62 MB / 444.9 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03069/0.4245, allocations: 20.6 MB / 465.5 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003707/0.4282, allocations: 107.1 kB / 465.6 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002848/0.4311, allocations: 0.7726 MB / 466.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01045/0.4416, allocations: 3.44 MB / 469.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01235/0.454, allocations: 4.473 MB / 474.3 MB, free: 7.953 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01192/0.4659, allocations: 8.745 MB / 483.1 MB, free: 15.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003949/0.4699, allocations: 1.521 MB / 484.6 MB, free: 13.65 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4244/0.8943, allocations: 125.9 MB / 0.5962 GB, free: 32.14 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07515/0.9695, allocations: 55.04 MB / 0.6499 GB, free: 15.94 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009742/0.9705, allocations: 124 kB / 0.6501 GB, free: 15.82 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01664/0.9872, allocations: 7.983 MB / 0.6579 GB, free: 8.957 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001985/0.9892, allocations: 0.9661 MB / 0.6588 GB, free: 8.289 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001234/0.9904, allocations: 0.5283 MB / 0.6593 GB, free: 7.98 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008302/0.9987, allocations: 3.854 MB / 0.6631 GB, free: 4.836 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.9988, allocations: 0 / 0.6631 GB, free: 4.836 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.9988, allocations: 0 / 0.6631 GB, free: 4.836 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001396/0.999, allocations: 0 / 0.6631 GB, free: 4.836 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.009066/1.008, allocations: 3.03 MB / 0.666 GB, free: 2.043 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/1.008, allocations: 8.031 kB / 0.6661 GB, free: 2.035 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000937/1.009, allocations: 346.1 kB / 0.6664 GB, free: 1.816 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/1.01, allocations: 304.6 kB / 0.6667 GB, free: 1.516 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/1.013, allocations: 1.529 MB / 0.6682 GB, free: 336 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002053/1.013, allocations: 218.3 kB / 0.6684 GB, free: 176 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003298/1.013, allocations: 200.6 kB / 0.6686 GB, free: 44 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005349/1.019, allocations: 3.302 MB / 0.6718 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.029e-05/1.019, allocations: 10.84 kB / 0.6718 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/1.019, allocations: 81.88 kB / 0.6719 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003345/1.019, allocations: 252.9 kB / 0.6721 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005053/1.024, allocations: 3.105 MB / 0.6751 GB, free: 11.32 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01971/1.044, allocations: 13.83 MB / 0.6887 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003843/1.048, allocations: 2.211 MB / 0.6908 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002237/1.05, allocations: 1.351 MB / 0.6921 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01047/1.061, allocations: 5.879 MB / 0.6979 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.026e-05/1.061, allocations: 56.69 kB / 0.6979 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009276/1.062, allocations: 186.3 kB / 0.6981 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=171): time 3.878e-06/1.062, allocations: 4 kB / 0.6981 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of matching and sorting (n=197): time 0.02149/1.083, allocations: 9.274 MB / 0.7072 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/1.084, allocations: 77.41 kB / 0.7072 GB, free: 416 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002578/1.086, allocations: 1.828 MB / 0.709 GB, free: 15 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002584/1.086, allocations: 58.77 kB / 0.7091 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007719/1.087, allocations: 1.07 MB / 0.7101 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006287/1.088, allocations: 0.6754 MB / 0.7108 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/1.088, allocations: 45.31 kB / 0.7108 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000208/1.088, allocations: 399.8 kB / 0.7112 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/1.09, allocations: 1.196 MB / 0.7124 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002225/1.092, allocations: 1.775 MB / 0.7141 GB, free: 11 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/1.094, allocations: 1.456 MB / 0.7155 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/1.095, allocations: 4 kB / 0.7155 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007292/1.102, allocations: 4.212 MB / 0.7197 GB, free: 6.984 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005082/1.102, allocations: 0.6042 MB / 0.7202 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/1.102, allocations: 16 kB / 0.7203 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01279/1.115, allocations: 3.672 MB / 0.7238 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001466/1.117, allocations: 331.9 kB / 0.7242 GB, free: 2.176 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2807/1.397, allocations: 3.941 MB / 0.728 GB, free: 142.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002685/1.4, allocations: 186.4 kB / 0.7282 GB, free: 142.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002841/1.4, allocations: 115.9 kB / 0.7283 GB, free: 142.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/1.401, allocations: 8.594 kB / 0.7283 GB, free: 142.2 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006958/1.407, allocations: 3.787 MB / 0.732 GB, free: 142.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-05/1.408, allocations: 18.09 kB / 0.732 GB, free: 142.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01018/1.418, allocations: 2.84 MB / 0.7348 GB, free: 142.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/1.42, allocations: 373.2 kB / 0.7352 GB, free: 142.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005922/1.425, allocations: 3.468 MB / 0.7385 GB, free: 141.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002525/1.428, allocations: 180.9 kB / 0.7387 GB, free: 141.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002694/1.428, allocations: 114.9 kB / 0.7388 GB, free: 141.6 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 174 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.001514/1.43, allocations: 0.7007 MB / 0.7395 GB, free: 141.4 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005112/1.43, allocations: 226.6 kB / 0.7397 GB, free: 141.4 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00747/1.438, allocations: 3.973 MB / 0.7436 GB, free: 141.2 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.879e-05/1.438, allocations: 28.72 kB / 0.7436 GB, free: 141.2 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/1.438, allocations: 0.875 kB / 0.7436 GB, free: 141.2 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005225/1.443, allocations: 3.373 MB / 0.7469 GB, free: 140.7 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/1.454, allocations: 6.303 MB / 0.7531 GB, free: 140.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/1.454, allocations: 0 / 0.7531 GB, free: 140.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/1.455, allocations: 324.2 kB / 0.7534 GB, free: 140.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004186/1.459, allocations: 1.236 MB / 0.7546 GB, free: 140.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004212/1.46, allocations: 72.83 kB / 0.7547 GB, free: 140.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008687/1.468, allocations: 10.45 MB / 0.7649 GB, free: 132.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.468, allocations: 0 / 0.7649 GB, free: 132.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008745/1.477, allocations: 5.186 MB / 0.7699 GB, free: 132 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/1.479, allocations: 0.6058 MB / 0.7705 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003487/1.479, allocations: 52.78 kB / 0.7706 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/1.48, allocations: 146 kB / 0.7707 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003517/1.481, allocations: 170.6 kB / 0.7709 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001659/1.481, allocations: 82.75 kB / 0.771 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001709/1.483, allocations: 1.25 MB / 0.7722 GB, free: 131.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/1.483, allocations: 0 / 0.7722 GB, free: 131.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004858/1.487, allocations: 1.75 MB / 0.7739 GB, free: 131.6 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.00949/1.497, allocations: 6.615 MB / 0.7804 GB, free: 127.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008784/1.506, allocations: 4.97 MB / 0.7852 GB, free: 124.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.506, allocations: 0 / 0.7852 GB, free: 124.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003518/1.509, allocations: 2.242 MB / 0.7874 GB, free: 123.1 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004248/1.514, allocations: 1.002 MB / 0.7884 GB, free: 122.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02806/1.542, allocations: 19.56 MB / 0.8075 GB, free: 105.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/1.543, allocations: 1.873 MB / 0.8093 GB, free: 103.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003034/1.546, allocations: 0.9645 MB / 0.8102 GB, free: 102.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/1.547, allocations: 1.005 MB / 0.8112 GB, free: 102.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.172e-06/1.547, allocations: 0 / 0.8112 GB, free: 102.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1168/1.664, allocations: 93.32 MB / 0.9024 GB, free: 9.734 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/1.664, allocations: 214.4 kB / 0.9026 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.445/6.109, allocations: 3.938 kB / 0.9026 GB, free: 9.488 MB / 0.5137 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat