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.001028/0.001028, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.347/1.347, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 94.52 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002818/0.0002818, allocations: 4 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2728, allocations: 50.41 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.312/7.585, allocations: 3.16 GB / 3.553 GB, free: 111.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/7.585, allocations: 90.73 kB / 3.553 GB, free: 111.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 11.22/18.8, allocations: 3.11 GB / 6.663 GB, free: 48.88 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.159e-05/18.8, allocations: 0 / 6.663 GB, free: 48.88 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005301/18.8, allocations: 69.06 kB / 6.663 GB, free: 48.87 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.02243/18.82, allocations: 3.91 MB / 6.667 GB, free: 46.91 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/18.82, allocations: 7.812 kB / 6.667 GB, free: 46.91 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002697/18.83, allocations: 344.8 kB / 6.667 GB, free: 46.86 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003178/18.83, allocations: 315.3 kB / 6.667 GB, free: 46.71 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009428/18.84, allocations: 2.04 MB / 6.669 GB, free: 46.25 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004627/18.84, allocations: 219.3 kB / 6.67 GB, free: 46.18 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001515/18.84, allocations: 202.2 kB / 6.67 GB, free: 46.18 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01382/18.86, allocations: 3.366 MB / 6.673 GB, free: 45.67 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001814/18.86, allocations: 11.36 kB / 6.673 GB, free: 45.66 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001056/18.86, allocations: 86.94 kB / 6.673 GB, free: 45.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003533/18.86, allocations: 198.5 kB / 6.673 GB, free: 45.66 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008289/18.87, allocations: 3.109 MB / 6.676 GB, free: 45.61 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.02808/18.89, allocations: 12.44 MB / 6.689 GB, free: 40.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004571/18.9, allocations: 2.257 MB / 6.691 GB, free: 39.37 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01113/18.91, allocations: 5.881 MB / 6.697 GB, free: 35.39 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.608e-05/18.91, allocations: 51.72 kB / 6.697 GB, free: 35.34 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001628/18.91, allocations: 191.5 kB / 6.697 GB, free: 35.22 MB / 490.7 MB Notification: Performance of pre-optimization done (n=174): time 1.229e-05/18.91, allocations: 0 / 6.697 GB, free: 35.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=200): time 0.02305/18.93, allocations: 9.123 MB / 6.706 GB, free: 30.58 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/18.93, allocations: 124.8 kB / 6.706 GB, free: 30.43 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/18.94, allocations: 1.672 MB / 6.707 GB, free: 28.98 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002402/18.94, allocations: 61.7 kB / 6.708 GB, free: 28.92 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007615/18.94, allocations: 1.039 MB / 6.709 GB, free: 27.98 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005939/18.94, allocations: 0.6859 MB / 6.709 GB, free: 27.36 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/18.94, allocations: 44 kB / 6.709 GB, free: 27.31 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/18.94, allocations: 408.2 kB / 6.71 GB, free: 26.94 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001787/18.94, allocations: 1.229 MB / 6.711 GB, free: 25.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00206/18.94, allocations: 1.741 MB / 6.713 GB, free: 24.22 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002043/18.95, allocations: 1.476 MB / 6.714 GB, free: 22.94 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/18.95, allocations: 4 kB / 6.714 GB, free: 22.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.007023/18.95, allocations: 4.273 MB / 6.718 GB, free: 19.22 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00127/18.95, allocations: 5.804 MB / 6.724 GB, free: 13.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/18.95, allocations: 15.69 kB / 6.724 GB, free: 13.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01362/18.97, allocations: 3.601 MB / 6.727 GB, free: 9.633 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/18.97, allocations: 311.5 kB / 6.728 GB, free: 9.328 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006467/18.98, allocations: 4.039 MB / 6.732 GB, free: 5.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003366/18.98, allocations: 195.3 kB / 6.732 GB, free: 5.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002721/18.98, allocations: 112 kB / 6.732 GB, free: 4.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/18.98, allocations: 7.469 kB / 6.732 GB, free: 4.977 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006023/18.99, allocations: 3.815 MB / 6.736 GB, free: 1.172 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/18.99, allocations: 16 kB / 6.736 GB, free: 1.156 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4879/19.47, allocations: 2.947 MB / 6.739 GB, free: 45.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002041/19.48, allocations: 357.2 kB / 6.739 GB, free: 45.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005658/19.48, allocations: 3.505 MB / 6.742 GB, free: 44.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003273/19.48, allocations: 196.5 kB / 6.742 GB, free: 44.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002757/19.48, allocations: 104.7 kB / 6.743 GB, free: 44.64 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.002087/19.49, allocations: 0.7025 MB / 6.743 GB, free: 44.45 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006699/19.49, allocations: 231.6 kB / 6.743 GB, free: 44.45 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008549/19.5, allocations: 4.075 MB / 6.747 GB, free: 44.28 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-05/19.5, allocations: 19.69 kB / 6.747 GB, free: 44.28 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/19.5, allocations: 3.656 kB / 6.747 GB, free: 44.28 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006087/19.5, allocations: 3.469 MB / 6.751 GB, free: 43.82 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01393/19.52, allocations: 6.445 MB / 6.757 GB, free: 43.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/19.52, allocations: 0 / 6.757 GB, free: 43.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/19.52, allocations: 326.5 kB / 6.757 GB, free: 43.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004875/19.52, allocations: 1.274 MB / 6.759 GB, free: 43.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003364/19.52, allocations: 73.09 kB / 6.759 GB, free: 43.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009611/19.53, allocations: 10.58 MB / 6.769 GB, free: 35.44 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/19.53, allocations: 0 / 6.769 GB, free: 35.44 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/19.54, allocations: 5.28 MB / 6.774 GB, free: 35.14 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002563/19.55, allocations: 0.6395 MB / 6.775 GB, free: 34.93 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004135/19.55, allocations: 58.02 kB / 6.775 GB, free: 34.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001865/19.55, allocations: 157.6 kB / 6.775 GB, free: 34.92 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004659/19.55, allocations: 172.9 kB / 6.775 GB, free: 34.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003423/19.55, allocations: 81.38 kB / 6.775 GB, free: 34.92 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002449/19.55, allocations: 1.264 MB / 6.777 GB, free: 34.77 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.9e-07/19.55, allocations: 1.5 kB / 6.777 GB, free: 34.77 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007626/19.56, allocations: 1.939 MB / 6.778 GB, free: 34.77 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 () * 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.01328/19.57, allocations: 7.103 MB / 6.785 GB, free: 33.81 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01144/19.58, allocations: 5.077 MB / 6.79 GB, free: 33.69 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/19.58, allocations: 0 / 6.79 GB, free: 33.69 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004547/19.59, allocations: 2.272 MB / 6.793 GB, free: 33.11 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005533/19.59, allocations: 0.9351 MB / 6.793 GB, free: 33.08 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02242/19.62, allocations: 18.45 MB / 6.812 GB, free: 19.78 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00178/19.62, allocations: 1.92 MB / 6.813 GB, free: 19.02 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004237/19.62, allocations: 0.964 MB / 6.814 GB, free: 18.96 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001788/19.62, allocations: 1.002 MB / 6.815 GB, free: 18.95 MB / 490.7 MB Notification: Performance of SimCode: time 2.335e-06/19.62, allocations: 0 / 6.815 GB, free: 18.95 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1839/19.81, allocations: 95.52 MB / 6.909 GB, free: 5.023 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002518/19.81, allocations: 202.6 kB / 6.909 GB, free: 4.777 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.892/25.7, allocations: 0 / 6.909 GB, free: 4.777 MB / 0.4948 GB (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