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.001849/0.001849, allocations: 180.3 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.819/1.819, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001019/0.00102, allocations: 86.33 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.795e-05/1.799e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.97/8.075, allocations: 3.154 GB / 3.508 GB, free: 80.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/8.075, allocations: 78.3 kB / 3.508 GB, free: 80.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.1/18.18, allocations: 3.067 GB / 6.575 GB, free: 46.29 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.643e-06/18.18, allocations: 0 / 6.575 GB, free: 46.29 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002232/18.18, allocations: 74.59 kB / 6.575 GB, free: 46.27 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.01499/18.19, allocations: 3.587 MB / 6.579 GB, free: 44.51 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/18.19, allocations: 9.188 kB / 6.579 GB, free: 44.51 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001971/18.19, allocations: 313.2 kB / 6.579 GB, free: 44.36 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005444/18.2, allocations: 2.022 MB / 6.581 GB, free: 43.89 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000205/18.2, allocations: 156.6 kB / 6.581 GB, free: 43.82 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004898/18.2, allocations: 120.9 kB / 6.581 GB, free: 43.81 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004358/18.2, allocations: 2.844 MB / 6.584 GB, free: 43.8 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004324/18.21, allocations: 3.029 MB / 6.587 GB, free: 43.3 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.479e-05/18.21, allocations: 9.844 kB / 6.587 GB, free: 43.29 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002453/18.21, allocations: 6.938 kB / 6.587 GB, free: 43.29 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000237/18.21, allocations: 199.8 kB / 6.587 GB, free: 43.29 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.016/18.22, allocations: 11.93 MB / 6.599 GB, free: 38.28 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00352/18.23, allocations: 2.166 MB / 6.601 GB, free: 37.52 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/18.23, allocations: 1.298 MB / 6.602 GB, free: 37.06 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009107/18.24, allocations: 5.868 MB / 6.608 GB, free: 33.15 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.721e-05/18.24, allocations: 58.88 kB / 6.608 GB, free: 33.1 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001253/18.24, allocations: 121.1 kB / 6.608 GB, free: 33.03 MB / 474.7 MB Notification: Performance of pre-optimization done (n=172): time 4.749e-06/18.24, allocations: 0 / 6.608 GB, free: 33.03 MB / 474.7 MB Notification: Performance of matching and sorting (n=198): time 0.02233/18.26, allocations: 8.564 MB / 6.616 GB, free: 29.11 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/18.26, allocations: 124.8 kB / 6.617 GB, free: 28.96 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/18.26, allocations: 1.212 MB / 6.618 GB, free: 27.87 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001668/18.26, allocations: 25.7 kB / 6.618 GB, free: 27.84 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004556/18.27, allocations: 1.046 MB / 6.619 GB, free: 26.89 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004013/18.27, allocations: 0.6569 MB / 6.619 GB, free: 26.28 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/18.27, allocations: 0 / 6.619 GB, free: 26.28 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/18.27, allocations: 399.9 kB / 6.62 GB, free: 25.91 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/18.27, allocations: 1.155 MB / 6.621 GB, free: 24.89 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/18.27, allocations: 1.664 MB / 6.623 GB, free: 23.21 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01275/18.28, allocations: 3.792 MB / 6.626 GB, free: 20.49 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.621e-05/18.28, allocations: 11.58 kB / 6.626 GB, free: 20.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01778/18.3, allocations: 6.303 MB / 6.632 GB, free: 15.51 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002094/18.3, allocations: 5.785 MB / 6.638 GB, free: 9.469 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.089e-05/18.3, allocations: 15.94 kB / 6.638 GB, free: 9.453 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008646/18.31, allocations: 2.578 MB / 6.641 GB, free: 7.184 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/18.31, allocations: 323.5 kB / 6.641 GB, free: 6.867 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008312/18.32, allocations: 4.545 MB / 6.645 GB, free: 2.305 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/18.32, allocations: 152.6 kB / 6.646 GB, free: 2.168 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002639/18.32, allocations: 112 kB / 6.646 GB, free: 2.059 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/18.32, allocations: 4 kB / 6.646 GB, free: 2.055 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2944/18.62, allocations: 5.721 MB / 6.651 GB, free: 43.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.736e-05/18.62, allocations: 15.61 kB / 6.651 GB, free: 43.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008053/18.63, allocations: 2.282 MB / 6.653 GB, free: 43.04 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001729/18.63, allocations: 365.5 kB / 6.654 GB, free: 43.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005916/18.63, allocations: 3.819 MB / 6.658 GB, free: 42.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00261/18.64, allocations: 145.5 kB / 6.658 GB, free: 42.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002977/18.64, allocations: 105.2 kB / 6.658 GB, free: 42.48 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.0006763/18.64, allocations: 152.2 kB / 6.658 GB, free: 42.38 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008434/18.65, allocations: 3.442 MB / 6.661 GB, free: 42.24 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006409/18.65, allocations: 200.8 kB / 6.662 GB, free: 42.24 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009197/18.65, allocations: 4.068 MB / 6.665 GB, free: 42.06 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-05/18.65, allocations: 23.66 kB / 6.666 GB, free: 42.06 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/18.66, allocations: 2.281 kB / 6.666 GB, free: 42.06 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007068/18.66, allocations: 3.552 MB / 6.669 GB, free: 41.59 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/18.67, allocations: 6.241 MB / 6.675 GB, free: 41.19 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.235e-06/18.67, allocations: 0 / 6.675 GB, free: 41.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/18.67, allocations: 329.7 kB / 6.675 GB, free: 41.19 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00276/18.68, allocations: 1.017 MB / 6.676 GB, free: 41.12 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001685/18.68, allocations: 45.7 kB / 6.676 GB, free: 41.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007584/18.69, allocations: 10.34 MB / 6.687 GB, free: 33.55 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/18.69, allocations: 0 / 6.687 GB, free: 33.55 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009304/18.69, allocations: 5.28 MB / 6.692 GB, free: 33.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001539/18.7, allocations: 0.5947 MB / 6.692 GB, free: 32.96 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003882/18.7, allocations: 22.11 kB / 6.692 GB, free: 32.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/18.7, allocations: 114.3 kB / 6.692 GB, free: 32.95 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003514/18.7, allocations: 173.9 kB / 6.693 GB, free: 32.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/18.7, allocations: 83.98 kB / 6.693 GB, free: 32.94 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001145/18.7, allocations: 0.8792 MB / 6.693 GB, free: 32.83 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.513e-06/18.7, allocations: 2.344 kB / 6.693 GB, free: 32.83 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005193/18.71, allocations: 1.814 MB / 6.695 GB, free: 32.83 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,5 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01195/18.72, allocations: 7.089 MB / 6.702 GB, free: 31.88 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008594/18.73, allocations: 4.726 MB / 6.707 GB, free: 31.77 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/18.73, allocations: 0.6562 kB / 6.707 GB, free: 31.77 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003368/18.73, allocations: 2.126 MB / 6.709 GB, free: 31.24 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004723/18.73, allocations: 0.8243 MB / 6.71 GB, free: 31.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/18.75, allocations: 5.461 MB / 6.715 GB, free: 30.17 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001214/18.75, allocations: 1.923 MB / 6.717 GB, free: 29.41 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003307/18.75, allocations: 1.027 MB / 6.718 GB, free: 29.34 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001163/18.75, allocations: 0.9572 MB / 6.719 GB, free: 29.33 MB / 474.7 MB Notification: Performance of SimCode: time 1.082e-06/18.75, allocations: 0 / 6.719 GB, free: 29.33 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1263/18.88, allocations: 88.51 MB / 6.805 GB, free: 6.789 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001252/18.88, allocations: 126.1 kB / 6.805 GB, free: 6.594 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.037/23.92, allocations: 4.031 kB / 6.805 GB, free: 6.59 MB / 474.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