Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007807/0.0007807, allocations: 96.62 kB / 17.3 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008214/0.0008217, allocations: 179.2 kB / 18.21 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.291/1.291, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000624/0.000624, allocations: 12 kB / 281.5 MB, free: 3.324 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1112, allocations: 47.58 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2973/0.4085, allocations: 93.76 MB / 422.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03515/0.4437, allocations: 22.31 MB / 445.1 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004543/0.4483, allocations: 107.1 kB / 445.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003462/0.4518, allocations: 0.8159 MB / 446 MB, free: 4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01117/0.463, allocations: 3.513 MB / 449.6 MB, free: 484 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01331/0.4763, allocations: 4.905 MB / 454.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0127/0.4891, allocations: 10.7 MB / 465.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003599/0.4927, allocations: 1.573 MB / 466.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1558/0.6486, allocations: 73.37 MB / 0.5274 GB, free: 5.02 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3151/0.9637, allocations: 31.94 MB / 0.5586 GB, free: 68.89 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001398/0.9651, allocations: 121.9 kB / 0.5587 GB, free: 68.89 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0126/0.9778, allocations: 5.941 MB / 0.5645 GB, free: 67.88 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002166/0.98, allocations: 0.9676 MB / 0.5655 GB, free: 67.88 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003659/0.9836, allocations: 1.39 MB / 0.5669 GB, free: 67.81 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008836/0.9925, allocations: 5.308 MB / 0.572 GB, free: 66.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.9925, allocations: 0 / 0.572 GB, free: 66.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.9926, allocations: 0 / 0.572 GB, free: 66.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.228e-05/0.9926, allocations: 0 / 0.572 GB, free: 66.25 MB / 430.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.007057/0.9997, allocations: 3.008 MB / 0.575 GB, free: 64.46 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.9997, allocations: 6.562 kB / 0.575 GB, free: 64.46 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007382/1, allocations: 339.8 kB / 0.5753 GB, free: 64.35 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007948/1.001, allocations: 304.9 kB / 0.5756 GB, free: 64.21 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002319/1.004, allocations: 1.581 MB / 0.5771 GB, free: 63.44 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/1.004, allocations: 223.7 kB / 0.5774 GB, free: 63.31 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002873/1.004, allocations: 195.8 kB / 0.5775 GB, free: 63.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004454/1.009, allocations: 3.311 MB / 0.5808 GB, free: 60.75 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/1.009, allocations: 11.47 kB / 0.5808 GB, free: 60.74 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002678/1.009, allocations: 84.17 kB / 0.5809 GB, free: 60.72 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002498/1.009, allocations: 250.8 kB / 0.5811 GB, free: 60.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004312/1.014, allocations: 3.12 MB / 0.5841 GB, free: 58.43 MB / 430.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.01495/1.028, allocations: 13.84 MB / 0.5977 GB, free: 46.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003494/1.032, allocations: 2.222 MB / 0.5998 GB, free: 44.89 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/1.034, allocations: 1.358 MB / 0.6012 GB, free: 43.99 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007074/1.041, allocations: 5.868 MB / 0.6069 GB, free: 38.03 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/1.041, allocations: 54.81 kB / 0.6069 GB, free: 37.97 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007332/1.042, allocations: 181.9 kB / 0.6071 GB, free: 37.79 MB / 430.1 MB Notification: Performance of pre-optimization done (n=171): time 2.995e-06/1.042, allocations: 0 / 0.6071 GB, free: 37.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.01967/1.061, allocations: 9.233 MB / 0.6161 GB, free: 28.49 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/1.062, allocations: 76.03 kB / 0.6162 GB, free: 28.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00221/1.064, allocations: 1.849 MB / 0.618 GB, free: 26.52 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001777/1.064, allocations: 57.7 kB / 0.6181 GB, free: 26.45 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005219/1.065, allocations: 1.067 MB / 0.6191 GB, free: 25.38 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004315/1.065, allocations: 0.673 MB / 0.6198 GB, free: 24.71 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/1.065, allocations: 198.4 kB / 0.62 GB, free: 24.51 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.011e-05/1.065, allocations: 309.1 kB / 0.6202 GB, free: 24.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001689/1.067, allocations: 1.226 MB / 0.6214 GB, free: 22.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001912/1.069, allocations: 1.808 MB / 0.6232 GB, free: 20.93 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003638/1.073, allocations: 3.164 MB / 0.6263 GB, free: 17.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/1.073, allocations: 4 kB / 0.6263 GB, free: 17.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006215/1.079, allocations: 4.303 MB / 0.6305 GB, free: 13.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003204/1.079, allocations: 0.5987 MB / 0.6311 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/1.079, allocations: 24 kB / 0.6311 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01278/1.092, allocations: 3.66 MB / 0.6347 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/1.093, allocations: 327.8 kB / 0.635 GB, free: 8.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005668/1.099, allocations: 3.953 MB / 0.6389 GB, free: 4.637 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002371/1.101, allocations: 187.8 kB / 0.639 GB, free: 4.453 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000273/1.102, allocations: 116 kB / 0.6391 GB, free: 4.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/1.102, allocations: 4 kB / 0.6392 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005789/1.107, allocations: 3.814 MB / 0.6429 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.076e-05/1.107, allocations: 19.98 kB / 0.6429 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009759/1.117, allocations: 2.872 MB / 0.6457 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/1.119, allocations: 371.9 kB / 0.6461 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005605/1.124, allocations: 3.481 MB / 0.6495 GB, free: 9.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002323/1.127, allocations: 180.4 kB / 0.6496 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003959/1.127, allocations: 112 kB / 0.6497 GB, free: 9.645 MB / 446.1 MB 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.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.001439/1.129, allocations: 0.7127 MB / 0.6504 GB, free: 8.949 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006198/1.129, allocations: 229.3 kB / 0.6506 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007787/1.137, allocations: 3.957 MB / 0.6545 GB, free: 4.777 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.65e-05/1.137, allocations: 24 kB / 0.6545 GB, free: 4.754 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.97e-05/1.137, allocations: 9.938 kB / 0.6545 GB, free: 4.746 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005879/1.143, allocations: 3.389 MB / 0.6579 GB, free: 1.277 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01074/1.154, allocations: 6.323 MB / 0.664 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/1.154, allocations: 0 / 0.664 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/1.155, allocations: 321.3 kB / 0.6643 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004517/1.16, allocations: 1.24 MB / 0.6655 GB, free: 9.375 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003788/1.16, allocations: 75.95 kB / 0.6656 GB, free: 9.301 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009224/1.169, allocations: 10.47 MB / 0.6758 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.169, allocations: 0 / 0.6758 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00932/1.179, allocations: 5.2 MB / 0.6809 GB, free: 8.914 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/1.18, allocations: 0.6032 MB / 0.6815 GB, free: 8.289 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006291/1.181, allocations: 51.98 kB / 0.6816 GB, free: 8.238 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/1.183, allocations: 147.7 kB / 0.6817 GB, free: 8.094 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004997/1.183, allocations: 168.8 kB / 0.6819 GB, free: 7.934 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002139/1.184, allocations: 83.95 kB / 0.6819 GB, free: 7.852 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002072/1.186, allocations: 1.257 MB / 0.6832 GB, free: 6.574 MB / 478.1 MB Notification: Performance of sort global known variables: time 5e-07/1.186, allocations: 0 / 0.6832 GB, free: 6.574 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0054/1.191, allocations: 1.741 MB / 0.6849 GB, free: 4.832 MB / 478.1 MB 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 (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01154/1.203, allocations: 6.663 MB / 0.6914 GB, free: 14.21 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01065/1.213, allocations: 5.045 MB / 0.6963 GB, free: 9.273 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.213, allocations: 4 kB / 0.6963 GB, free: 9.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004207/1.218, allocations: 2.25 MB / 0.6985 GB, free: 6.992 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005798/1.223, allocations: 0.9781 MB / 0.6995 GB, free: 6.012 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2017/1.425, allocations: 27.83 MB / 0.7266 GB, free: 202 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001241/1.426, allocations: 1.881 MB / 0.7285 GB, free: 201.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002797/1.429, allocations: 0.9574 MB / 0.7294 GB, free: 201.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/1.43, allocations: 0.9997 MB / 0.7304 GB, free: 200.3 MB / 494.1 MB Notification: Performance of SimCode: time 8.62e-07/1.43, allocations: 0 / 0.7304 GB, free: 200.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1181/1.549, allocations: 94.02 MB / 0.8222 GB, free: 113.4 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001401/1.549, allocations: 224.6 kB / 0.8224 GB, free: 113.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.316/5.865, allocations: 0 / 0.8224 GB, free: 113.1 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat