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/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.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/Complex trunk/package.mo): time 0.001196/0.001196, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 227.2 MB / 245 MB, free: 5.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008101/0.0008101, allocations: 95.45 kB / 297.2 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002217/0.0002217, allocations: 8 kB / 358 MB, free: 9.242 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.231, allocations: 51.47 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.279/6.51, allocations: 3.161 GB / 3.561 GB, free: 105.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/6.51, allocations: 84.34 kB / 3.561 GB, free: 105.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.823/15.33, allocations: 3.116 GB / 6.678 GB, free: 7.965 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.186e-06/15.33, allocations: 3.984 kB / 6.678 GB, free: 7.961 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003091/15.33, allocations: 71.92 kB / 6.678 GB, free: 7.891 MB / 490.7 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.01554/15.35, allocations: 3.911 MB / 6.682 GB, free: 3.914 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/15.35, allocations: 8.031 kB / 6.682 GB, free: 3.906 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001762/15.35, allocations: 351.3 kB / 6.682 GB, free: 3.551 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002116/15.35, allocations: 312.6 kB / 6.682 GB, free: 3.242 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006828/15.36, allocations: 2.04 MB / 6.684 GB, free: 1.148 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002757/15.36, allocations: 223.2 kB / 6.684 GB, free: 0.918 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/15.36, allocations: 199.9 kB / 6.685 GB, free: 0.7227 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.309/15.67, allocations: 3.361 MB / 6.688 GB, free: 33.39 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.1e-05/15.67, allocations: 6.344 kB / 6.688 GB, free: 33.39 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003148/15.67, allocations: 89.25 kB / 6.688 GB, free: 33.39 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002228/15.67, allocations: 203.3 kB / 6.688 GB, free: 33.39 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004821/15.68, allocations: 3.108 MB / 6.691 GB, free: 33.38 MB / 490.7 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.01923/15.69, allocations: 12.44 MB / 6.703 GB, free: 28.61 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003517/15.7, allocations: 2.25 MB / 6.706 GB, free: 28.46 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009659/15.71, allocations: 5.879 MB / 6.711 GB, free: 25.7 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/15.71, allocations: 57.48 kB / 6.711 GB, free: 25.66 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00132/15.71, allocations: 200.8 kB / 6.712 GB, free: 25.61 MB / 490.7 MB Notification: Performance of pre-optimization done (n=174): time 9.998e-06/15.71, allocations: 0 / 6.712 GB, free: 25.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=200): time 0.02371/15.73, allocations: 9.109 MB / 6.72 GB, free: 24.46 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/15.73, allocations: 131.5 kB / 6.721 GB, free: 24.33 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003583/15.74, allocations: 1.674 MB / 6.722 GB, free: 24.11 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005157/15.74, allocations: 60.92 kB / 6.722 GB, free: 24.08 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008435/15.74, allocations: 1.034 MB / 6.723 GB, free: 23.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009303/15.74, allocations: 0.6896 MB / 6.724 GB, free: 23.23 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003857/15.74, allocations: 45.88 kB / 6.724 GB, free: 23.23 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000226/15.74, allocations: 402.7 kB / 6.724 GB, free: 22.93 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002183/15.74, allocations: 1.228 MB / 6.726 GB, free: 22.92 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002504/15.74, allocations: 1.743 MB / 6.727 GB, free: 22.37 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002559/15.75, allocations: 1.475 MB / 6.729 GB, free: 22.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.615e-05/15.75, allocations: 3.844 kB / 6.729 GB, free: 22.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.008232/15.76, allocations: 4.269 MB / 6.733 GB, free: 22.14 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001296/15.76, allocations: 5.802 MB / 6.739 GB, free: 16.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.044e-05/15.76, allocations: 14.94 kB / 6.739 GB, free: 16.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01422/15.77, allocations: 3.592 MB / 6.742 GB, free: 16.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/15.77, allocations: 319.7 kB / 6.742 GB, free: 16.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007293/15.78, allocations: 4.038 MB / 6.746 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003008/15.78, allocations: 209.3 kB / 6.747 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003602/15.78, allocations: 110.6 kB / 6.747 GB, free: 15.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/15.78, allocations: 3.719 kB / 6.747 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006532/15.79, allocations: 3.809 MB / 6.75 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.216e-05/15.79, allocations: 14.25 kB / 6.75 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01014/15.8, allocations: 2.957 MB / 6.753 GB, free: 15.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002073/15.8, allocations: 363 kB / 6.754 GB, free: 15.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005352/15.81, allocations: 3.502 MB / 6.757 GB, free: 14.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002798/15.81, allocations: 195.9 kB / 6.757 GB, free: 14.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004485/15.81, allocations: 103.9 kB / 6.757 GB, free: 14.74 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 (168): * Single equations (assignments): 167 * 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 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.00184/15.81, allocations: 0.702 MB / 6.758 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006544/15.81, allocations: 232 kB / 6.758 GB, free: 14.42 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00853/15.82, allocations: 4.063 MB / 6.762 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.111e-05/15.82, allocations: 26.47 kB / 6.762 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.41e-05/15.82, allocations: 3.469 kB / 6.762 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006045/15.83, allocations: 3.471 MB / 6.766 GB, free: 13.73 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/15.84, allocations: 6.444 MB / 6.772 GB, free: 13.25 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/15.84, allocations: 5.406 kB / 6.772 GB, free: 13.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/15.84, allocations: 317 kB / 6.772 GB, free: 13.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004742/15.85, allocations: 1.269 MB / 6.773 GB, free: 13.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004141/15.85, allocations: 76.12 kB / 6.774 GB, free: 13.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009489/15.86, allocations: 10.6 MB / 6.784 GB, free: 19.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/15.86, allocations: 0 / 6.784 GB, free: 19.97 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/15.87, allocations: 5.278 MB / 6.789 GB, free: 17.89 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002268/15.87, allocations: 0.6422 MB / 6.79 GB, free: 17.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009442/15.87, allocations: 53.61 kB / 6.79 GB, free: 17.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002444/15.88, allocations: 157.5 kB / 6.79 GB, free: 17.45 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004809/15.88, allocations: 169.3 kB / 6.79 GB, free: 17.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003242/15.88, allocations: 82.44 kB / 6.79 GB, free: 17.42 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002479/15.88, allocations: 1.266 MB / 6.791 GB, free: 16.92 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.72e-07/15.88, allocations: 1.312 kB / 6.791 GB, free: 16.92 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008432/15.89, allocations: 1.952 MB / 6.793 GB, free: 16.68 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,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 (184): * Single equations (assignments): 170 * 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%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01445/15.9, allocations: 7.106 MB / 6.8 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01284/15.91, allocations: 5.074 MB / 6.805 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/15.91, allocations: 3.875 kB / 6.805 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004564/15.92, allocations: 2.276 MB / 6.807 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005115/15.92, allocations: 0.9386 MB / 6.808 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02375/15.95, allocations: 18.46 MB / 6.826 GB, free: 12.83 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003571/15.95, allocations: 1.924 MB / 6.828 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004811/15.96, allocations: 0.9619 MB / 6.829 GB, free: 11.91 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002041/15.96, allocations: 1.004 MB / 6.83 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of SimCode: time 1.082e-06/15.96, allocations: 5.406 kB / 6.83 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4617/16.42, allocations: 95.52 MB / 6.923 GB, free: 58.84 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001586/16.42, allocations: 210.6 kB / 6.924 GB, free: 58.59 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.591/22.01, allocations: 3.781 kB / 6.924 GB, free: 58.59 MB / 0.5105 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