Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.607/1.607, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009777/0.0009779, allocations: 98.16 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.18e-05/4.2e-05, allocations: 0 / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1182, allocations: 50.42 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.726/9.845, allocations: 3.16 GB / 3.546 GB, free: 100.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/9.845, allocations: 78.14 kB / 3.546 GB, free: 100.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.66/20.5, allocations: 3.108 GB / 6.654 GB, free: 42 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.753e-06/20.5, allocations: 0 / 6.654 GB, free: 42 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003675/20.5, allocations: 63.25 kB / 6.654 GB, free: 41.99 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.01703/20.52, allocations: 3.604 MB / 6.657 GB, free: 40.22 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.279e-05/20.52, allocations: 9.781 kB / 6.657 GB, free: 40.22 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002107/20.52, allocations: 341 kB / 6.658 GB, free: 40.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002889/20.53, allocations: 318 kB / 6.658 GB, free: 40.02 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008443/20.53, allocations: 2.018 MB / 6.66 GB, free: 39.55 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003923/20.53, allocations: 221.5 kB / 6.66 GB, free: 39.49 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001511/20.54, allocations: 200.3 kB / 6.66 GB, free: 39.48 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.011/20.55, allocations: 3.311 MB / 6.664 GB, free: 39 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001737/20.55, allocations: 3.156 kB / 6.664 GB, free: 39 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001161/20.55, allocations: 96.89 kB / 6.664 GB, free: 39 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003078/20.55, allocations: 204.6 kB / 6.664 GB, free: 38.99 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007395/20.56, allocations: 3.021 MB / 6.667 GB, free: 38.98 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02412/20.58, allocations: 12.44 MB / 6.679 GB, free: 33.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003776/20.58, allocations: 2.203 MB / 6.681 GB, free: 33.75 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001893/20.59, allocations: 1.351 MB / 6.683 GB, free: 33.73 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0099/20.6, allocations: 5.973 MB / 6.688 GB, free: 30.54 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.199e-05/20.6, allocations: 58.69 kB / 6.688 GB, free: 30.48 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001565/20.6, allocations: 194.2 kB / 6.689 GB, free: 30.36 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 9.348e-06/20.6, allocations: 0 / 6.689 GB, free: 30.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.01611/20.61, allocations: 7.255 MB / 6.696 GB, free: 27.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/20.61, allocations: 124.7 kB / 6.696 GB, free: 27.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002977/20.62, allocations: 1.656 MB / 6.697 GB, free: 26.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004372/20.62, allocations: 64.77 kB / 6.697 GB, free: 26.76 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000883/20.62, allocations: 1.041 MB / 6.698 GB, free: 25.94 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007665/20.62, allocations: 0.6839 MB / 6.699 GB, free: 25.41 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/20.62, allocations: 49.78 kB / 6.699 GB, free: 25.38 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001966/20.62, allocations: 396.1 kB / 6.7 GB, free: 25.04 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001892/20.62, allocations: 1.179 MB / 6.701 GB, free: 24.62 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002022/20.62, allocations: 1.704 MB / 6.702 GB, free: 23.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001995/20.63, allocations: 1.436 MB / 6.704 GB, free: 23.09 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/20.63, allocations: 3.938 kB / 6.704 GB, free: 23.09 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.006838/20.63, allocations: 4.137 MB / 6.708 GB, free: 21.58 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001508/20.63, allocations: 5.89 MB / 6.714 GB, free: 15.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.776e-05/20.63, allocations: 16.09 kB / 6.714 GB, free: 15.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01319/20.65, allocations: 3.563 MB / 6.717 GB, free: 13.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/20.65, allocations: 324.3 kB / 6.717 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007228/20.66, allocations: 3.937 MB / 6.721 GB, free: 10.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004671/20.66, allocations: 201.9 kB / 6.721 GB, free: 9.883 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007679/20.66, allocations: 107 kB / 6.722 GB, free: 9.789 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/20.66, allocations: 9.344 kB / 6.722 GB, free: 9.781 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007538/20.67, allocations: 3.698 MB / 6.725 GB, free: 6.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.132e-05/20.67, allocations: 12 kB / 6.725 GB, free: 6.559 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01014/20.68, allocations: 2.899 MB / 6.728 GB, free: 4.336 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001984/20.68, allocations: 368.7 kB / 6.728 GB, free: 4.035 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006769/20.69, allocations: 3.432 MB / 6.732 GB, free: 1.043 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003221/20.69, allocations: 190.5 kB / 6.732 GB, free: 0.9023 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000582/20.69, allocations: 109.8 kB / 6.732 GB, free: 0.8086 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * 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.0009351/20.69, allocations: 224.5 kB / 6.732 GB, free: 0.582 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008076/20.69, allocations: 229.1 kB / 6.732 GB, free: 364 kB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4211/21.12, allocations: 3.886 MB / 6.736 GB, free: 39.76 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.885e-05/21.12, allocations: 27.19 kB / 6.736 GB, free: 39.76 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.579e-05/21.12, allocations: 3.344 kB / 6.736 GB, free: 39.76 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00683/21.12, allocations: 3.28 MB / 6.739 GB, free: 39.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/21.14, allocations: 6.337 MB / 6.746 GB, free: 38.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/21.14, allocations: 2 kB / 6.746 GB, free: 38.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/21.14, allocations: 317.9 kB / 6.746 GB, free: 38.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004857/21.14, allocations: 1.2 MB / 6.747 GB, free: 38.78 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006281/21.14, allocations: 73.58 kB / 6.747 GB, free: 38.78 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009772/21.15, allocations: 10.41 MB / 6.757 GB, free: 30.92 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/21.15, allocations: 0 / 6.757 GB, free: 30.92 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/21.17, allocations: 5.122 MB / 6.762 GB, free: 30.64 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/21.17, allocations: 0.6362 MB / 6.763 GB, free: 30.49 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008212/21.17, allocations: 60.78 kB / 6.763 GB, free: 30.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002269/21.17, allocations: 159.3 kB / 6.763 GB, free: 30.48 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004271/21.17, allocations: 165.5 kB / 6.763 GB, free: 30.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000268/21.17, allocations: 81.31 kB / 6.763 GB, free: 30.48 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002484/21.17, allocations: 1.279 MB / 6.765 GB, free: 30.32 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.1e-07/21.17, allocations: 0 / 6.765 GB, free: 30.32 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00744/21.18, allocations: 1.938 MB / 6.767 GB, free: 30.32 MB / 490.7 MB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 169 * 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%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01282/21.19, allocations: 6.929 MB / 6.773 GB, free: 29.36 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01061/21.2, allocations: 4.949 MB / 6.778 GB, free: 29.25 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/21.2, allocations: 6.938 kB / 6.778 GB, free: 29.25 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004017/21.21, allocations: 2.21 MB / 6.78 GB, free: 28.67 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005925/21.21, allocations: 0.9695 MB / 6.781 GB, free: 28.64 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/21.23, allocations: 5.711 MB / 6.787 GB, free: 27.61 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002548/21.23, allocations: 1.934 MB / 6.789 GB, free: 26.85 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005312/21.24, allocations: 1.193 MB / 6.79 GB, free: 26.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001714/21.24, allocations: 0.9794 MB / 6.791 GB, free: 26.79 MB / 490.7 MB Notification: Performance of SimCode: time 1.152e-06/21.24, allocations: 0 / 6.791 GB, free: 26.79 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1622/21.4, allocations: 100.3 MB / 6.889 GB, free: 5.074 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001459/21.4, allocations: 172.8 kB / 6.889 GB, free: 4.848 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.448/26.85, allocations: 0 / 6.889 GB, free: 4.848 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat