Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00154/0.00154, allocations: 185.9 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.104/2.104, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001436/0.001436, allocations: 94 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003886/0.0003886, allocations: 12 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3298, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.507/9.837, allocations: 3.154 GB / 3.52 GB, free: 80.56 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/9.837, allocations: 83.61 kB / 3.52 GB, free: 80.56 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 14.19/24.03, allocations: 3.099 GB / 6.619 GB, free: 43.76 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.635e-06/24.03, allocations: 0 / 6.619 GB, free: 43.76 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003332/24.03, allocations: 74.36 kB / 6.619 GB, free: 43.74 MB / 474.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.0193/24.05, allocations: 3.903 MB / 6.623 GB, free: 41.77 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/24.05, allocations: 11.25 kB / 6.623 GB, free: 41.77 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002013/24.05, allocations: 348.9 kB / 6.624 GB, free: 41.71 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001891/24.05, allocations: 311.1 kB / 6.624 GB, free: 41.57 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008776/24.06, allocations: 2.035 MB / 6.626 GB, free: 41.05 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003501/24.06, allocations: 227.8 kB / 6.626 GB, free: 40.98 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001184/24.06, allocations: 198.1 kB / 6.626 GB, free: 40.98 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009962/24.07, allocations: 3.354 MB / 6.629 GB, free: 40.48 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001018/24.07, allocations: 14.62 kB / 6.629 GB, free: 40.47 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004657/24.07, allocations: 86.66 kB / 6.63 GB, free: 40.47 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000378/24.07, allocations: 203.7 kB / 6.63 GB, free: 40.46 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/24.08, allocations: 3.104 MB / 6.633 GB, free: 39.93 MB / 474.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.03412/24.12, allocations: 12.44 MB / 6.645 GB, free: 31.36 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006936/24.13, allocations: 2.239 MB / 6.647 GB, free: 29.39 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01461/24.14, allocations: 5.882 MB / 6.653 GB, free: 23.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.746e-05/24.14, allocations: 54.66 kB / 6.653 GB, free: 23.93 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001618/24.14, allocations: 195.7 kB / 6.653 GB, free: 23.75 MB / 474.7 MB Notification: Performance of pre-optimization done (n=174): time 5.821e-06/24.14, allocations: 3.938 kB / 6.653 GB, free: 23.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=200): time 0.03839/24.18, allocations: 9.104 MB / 6.662 GB, free: 15.78 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.674e-05/24.18, allocations: 124.8 kB / 6.662 GB, free: 15.63 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00372/24.18, allocations: 1.675 MB / 6.664 GB, free: 13.92 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000751/24.19, allocations: 61.7 kB / 6.664 GB, free: 13.85 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007934/24.19, allocations: 0.9656 MB / 6.665 GB, free: 12.88 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009924/24.19, allocations: 0.6852 MB / 6.665 GB, free: 12.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003221/24.19, allocations: 48 kB / 6.665 GB, free: 12.16 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/24.19, allocations: 403.4 kB / 6.666 GB, free: 11.75 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003391/24.19, allocations: 1.23 MB / 6.667 GB, free: 10.52 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003754/24.2, allocations: 1.745 MB / 6.669 GB, free: 8.562 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004036/24.2, allocations: 1.474 MB / 6.67 GB, free: 7.086 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-05/24.2, allocations: 4 kB / 6.67 GB, free: 7.082 MB / 474.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01208/24.21, allocations: 4.14 MB / 6.674 GB, free: 2.93 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3752/24.59, allocations: 5.578 MB / 6.68 GB, free: 37.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.364e-05/24.59, allocations: 18.42 kB / 6.68 GB, free: 37.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02496/24.61, allocations: 3.598 MB / 6.683 GB, free: 37.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002537/24.61, allocations: 316.3 kB / 6.684 GB, free: 37.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01138/24.63, allocations: 4.034 MB / 6.687 GB, free: 37.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004388/24.63, allocations: 202.2 kB / 6.688 GB, free: 37.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005048/24.63, allocations: 112.9 kB / 6.688 GB, free: 37.16 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/24.63, allocations: 3.469 kB / 6.688 GB, free: 37.16 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01098/24.64, allocations: 3.821 MB / 6.692 GB, free: 37.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.563e-05/24.64, allocations: 17.38 kB / 6.692 GB, free: 37.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01715/24.66, allocations: 2.633 MB / 6.694 GB, free: 37.06 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003234/24.66, allocations: 359.2 kB / 6.694 GB, free: 37.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009017/24.67, allocations: 3.498 MB / 6.698 GB, free: 36.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003327/24.67, allocations: 199 kB / 6.698 GB, free: 36.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003463/24.68, allocations: 103.6 kB / 6.698 GB, free: 36.51 MB / 474.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.002018/24.68, allocations: 0.7048 MB / 6.699 GB, free: 36.32 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007546/24.68, allocations: 231.4 kB / 6.699 GB, free: 36.32 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01473/24.69, allocations: 4.072 MB / 6.703 GB, free: 36.14 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.795e-05/24.69, allocations: 27.83 kB / 6.703 GB, free: 36.14 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-05/24.69, allocations: 4.438 kB / 6.703 GB, free: 36.14 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01137/24.7, allocations: 3.464 MB / 6.706 GB, free: 35.67 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02256/24.73, allocations: 6.444 MB / 6.713 GB, free: 35.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.107e-05/24.73, allocations: 0 / 6.713 GB, free: 35.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00329/24.73, allocations: 324.6 kB / 6.713 GB, free: 35.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008357/24.74, allocations: 1.264 MB / 6.714 GB, free: 35.16 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007292/24.74, allocations: 72.86 kB / 6.714 GB, free: 35.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01283/24.75, allocations: 10.59 MB / 6.725 GB, free: 27.28 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/24.75, allocations: 5.297 kB / 6.725 GB, free: 27.28 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01595/24.77, allocations: 5.281 MB / 6.73 GB, free: 26.94 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002714/24.77, allocations: 0.6442 MB / 6.73 GB, free: 26.72 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009636/24.77, allocations: 53.89 kB / 6.731 GB, free: 26.72 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003623/24.78, allocations: 151.1 kB / 6.731 GB, free: 26.72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008057/24.78, allocations: 173.5 kB / 6.731 GB, free: 26.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003256/24.78, allocations: 85.02 kB / 6.731 GB, free: 26.71 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002936/24.78, allocations: 1.265 MB / 6.732 GB, free: 26.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.31e-07/24.78, allocations: 1.75 kB / 6.732 GB, free: 26.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009501/24.79, allocations: 1.939 MB / 6.734 GB, free: 26.57 MB / 474.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 () * 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.02093/24.81, allocations: 7.111 MB / 6.741 GB, free: 25.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01867/24.83, allocations: 5.058 MB / 6.746 GB, free: 25.47 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/24.83, allocations: 0 / 6.746 GB, free: 25.47 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007144/24.84, allocations: 2.259 MB / 6.748 GB, free: 24.89 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008066/24.84, allocations: 0.9254 MB / 6.749 GB, free: 24.85 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02648/24.87, allocations: 18.5 MB / 6.767 GB, free: 27.54 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002009/24.87, allocations: 1.904 MB / 6.769 GB, free: 26.79 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002567/24.88, allocations: 1.014 MB / 6.77 GB, free: 26.78 MB / 490.7 MB Notification: Performance of SimCode: time 1.703e-06/24.88, allocations: 0 / 6.77 GB, free: 26.78 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.79/29.67, allocations: 98.19 MB / 6.866 GB, free: 55 MB / 490.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat