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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.00134/0.00134, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.577/1.577, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0008827/0.0008827, allocations: 78.78 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.939e-05/2.943e-05, allocations: 7.938 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09138/0.09143, allocations: 47.57 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.346/7.438, allocations: 3.154 GB / 3.515 GB, free: 88.81 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/7.438, allocations: 78.84 kB / 3.516 GB, free: 88.78 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.4/17.83, allocations: 3.097 GB / 6.613 GB, free: 43.61 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.893e-06/17.83, allocations: 3.531 kB / 6.613 GB, free: 43.61 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002128/17.84, allocations: 69.8 kB / 6.613 GB, free: 43.59 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.01349/17.85, allocations: 3.593 MB / 6.616 GB, free: 40.86 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/17.85, allocations: 16.03 kB / 6.616 GB, free: 40.85 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001048/17.85, allocations: 336.2 kB / 6.617 GB, free: 40.68 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001209/17.85, allocations: 319.4 kB / 6.617 GB, free: 40.38 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004398/17.86, allocations: 2.017 MB / 6.619 GB, free: 39.13 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/17.86, allocations: 226.2 kB / 6.619 GB, free: 38.97 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003291/17.86, allocations: 202.1 kB / 6.619 GB, free: 38.84 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004523/17.86, allocations: 3.311 MB / 6.623 GB, free: 35.95 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.534e-05/17.86, allocations: 7.938 kB / 6.623 GB, free: 35.95 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002456/17.86, allocations: 87.02 kB / 6.623 GB, free: 35.87 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001931/17.86, allocations: 204.4 kB / 6.623 GB, free: 35.7 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00403/17.87, allocations: 3.026 MB / 6.626 GB, free: 33.02 MB / 474.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.01557/17.88, allocations: 12.44 MB / 6.638 GB, free: 22.13 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003119/17.88, allocations: 2.198 MB / 6.64 GB, free: 20.12 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001621/17.89, allocations: 1.337 MB / 6.641 GB, free: 18.87 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008243/17.89, allocations: 5.996 MB / 6.647 GB, free: 12.43 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/17.89, allocations: 56.56 kB / 6.647 GB, free: 12.36 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001054/17.89, allocations: 192.5 kB / 6.648 GB, free: 12.18 MB / 474.7 MB Notification: Performance of pre-optimization done (n=172): time 3.987e-06/17.89, allocations: 0 / 6.648 GB, free: 12.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=198): time 0.01587/17.91, allocations: 7.267 MB / 6.655 GB, free: 4.871 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.433e-05/17.91, allocations: 124.8 kB / 6.655 GB, free: 4.723 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002709/17.91, allocations: 1.656 MB / 6.656 GB, free: 3.023 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002751/17.91, allocations: 61.7 kB / 6.656 GB, free: 2.957 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007845/17.91, allocations: 1.038 MB / 6.657 GB, free: 1.914 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006293/17.92, allocations: 0.683 MB / 6.658 GB, free: 1.234 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/17.92, allocations: 52 kB / 6.658 GB, free: 1.184 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/17.92, allocations: 398.5 kB / 6.659 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3275/18.24, allocations: 1.183 MB / 6.66 GB, free: 39.05 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003182/18.25, allocations: 1.696 MB / 6.661 GB, free: 38.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002966/18.25, allocations: 1.435 MB / 6.663 GB, free: 38.48 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/18.25, allocations: 4.062 kB / 6.663 GB, free: 38.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.008428/18.26, allocations: 4.127 MB / 6.667 GB, free: 38.39 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001348/18.26, allocations: 5.902 MB / 6.673 GB, free: 32.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-05/18.26, allocations: 15.12 kB / 6.673 GB, free: 32.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01339/18.27, allocations: 3.56 MB / 6.676 GB, free: 32.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/18.27, allocations: 318.2 kB / 6.676 GB, free: 32.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007598/18.28, allocations: 3.947 MB / 6.68 GB, free: 31.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003014/18.28, allocations: 194.5 kB / 6.68 GB, free: 31.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003928/18.29, allocations: 112.4 kB / 6.681 GB, free: 31.66 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/18.29, allocations: 3.844 kB / 6.681 GB, free: 31.66 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007166/18.29, allocations: 3.701 MB / 6.684 GB, free: 31.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.762e-05/18.29, allocations: 14.69 kB / 6.684 GB, free: 31.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009454/18.3, allocations: 2.899 MB / 6.687 GB, free: 31.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/18.3, allocations: 360.2 kB / 6.687 GB, free: 31.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004871/18.31, allocations: 3.429 MB / 6.691 GB, free: 31.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002709/18.31, allocations: 193.9 kB / 6.691 GB, free: 31.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002909/18.31, allocations: 103.2 kB / 6.691 GB, free: 31.02 MB / 474.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.0007604/18.31, allocations: 237 kB / 6.691 GB, free: 30.91 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004682/18.31, allocations: 225.8 kB / 6.691 GB, free: 30.91 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006949/18.32, allocations: 3.888 MB / 6.695 GB, free: 30.73 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/18.32, allocations: 21.5 kB / 6.695 GB, free: 30.73 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/18.32, allocations: 7.141 kB / 6.695 GB, free: 30.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004881/18.33, allocations: 3.284 MB / 6.698 GB, free: 30.26 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01081/18.34, allocations: 6.328 MB / 6.705 GB, free: 29.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/18.34, allocations: 0.6562 kB / 6.705 GB, free: 29.78 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001383/18.34, allocations: 321.1 kB / 6.705 GB, free: 29.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004081/18.34, allocations: 1.199 MB / 6.706 GB, free: 29.71 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002754/18.34, allocations: 69.72 kB / 6.706 GB, free: 29.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007652/18.35, allocations: 10.4 MB / 6.716 GB, free: 21.79 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/18.35, allocations: 3.344 kB / 6.716 GB, free: 21.79 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009098/18.36, allocations: 5.118 MB / 6.721 GB, free: 21.38 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/18.36, allocations: 0.6421 MB / 6.722 GB, free: 21.16 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005356/18.36, allocations: 61.33 kB / 6.722 GB, free: 21.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001828/18.36, allocations: 157.7 kB / 6.722 GB, free: 21.15 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003949/18.36, allocations: 167.1 kB / 6.722 GB, free: 21.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002076/18.36, allocations: 85.97 kB / 6.722 GB, free: 21.15 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00231/18.37, allocations: 1.266 MB / 6.724 GB, free: 20.99 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.41e-07/18.37, allocations: 2.625 kB / 6.724 GB, free: 20.99 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009198/18.37, allocations: 1.944 MB / 6.726 GB, free: 20.99 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 () * 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.01121/18.39, allocations: 6.935 MB / 6.732 GB, free: 20.02 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009561/18.4, allocations: 4.959 MB / 6.737 GB, free: 19.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/18.4, allocations: 0 / 6.737 GB, free: 19.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003755/18.4, allocations: 2.201 MB / 6.739 GB, free: 19.32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005109/18.4, allocations: 0.9623 MB / 6.74 GB, free: 19.28 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01177/18.42, allocations: 5.724 MB / 6.746 GB, free: 18.24 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001226/18.42, allocations: 1.924 MB / 6.748 GB, free: 17.48 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003633/18.42, allocations: 1.196 MB / 6.749 GB, free: 17.41 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/18.42, allocations: 0.9867 MB / 6.75 GB, free: 17.4 MB / 474.7 MB Notification: Performance of SimCode: time 8.02e-07/18.42, allocations: 3.062 kB / 6.75 GB, free: 17.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4227/18.85, allocations: 100.2 MB / 6.848 GB, free: 49.58 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/18.85, allocations: 172.8 kB / 6.848 GB, free: 49.36 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.239/24.08, allocations: 3.469 kB / 6.848 GB, free: 49.36 MB / 490.7 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/linux/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