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.001037/0.001037, allocations: 178 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 221.5 MB / 230.3 MB, free: 7.594 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.000973/0.000973, allocations: 85.73 kB / 281.2 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.892e-05, allocations: 0 / 337.1 MB, free: 9.969 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1257, allocations: 50.42 MB / 387.5 MB, free: 7.508 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.016/9.142, allocations: 3.16 GB / 3.538 GB, free: 10.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/9.142, allocations: 74.28 kB / 3.538 GB, free: 10.27 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 11.66/20.8, allocations: 3.077 GB / 6.616 GB, free: 59.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.874e-06/20.8, allocations: 0 / 6.616 GB, free: 59.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002351/20.8, allocations: 62.91 kB / 6.616 GB, free: 59.2 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.01517/20.81, allocations: 3.597 MB / 6.619 GB, free: 57.41 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/20.81, allocations: 17.3 kB / 6.619 GB, free: 57.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002081/20.82, allocations: 310.2 kB / 6.62 GB, free: 57.26 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007039/20.82, allocations: 2.026 MB / 6.621 GB, free: 56.73 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002544/20.82, allocations: 151.3 kB / 6.622 GB, free: 56.67 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001188/20.82, allocations: 112.8 kB / 6.622 GB, free: 56.67 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005041/20.83, allocations: 2.851 MB / 6.625 GB, free: 56.14 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00452/20.83, allocations: 3.027 MB / 6.627 GB, free: 54.27 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.053e-05/20.83, allocations: 11.84 kB / 6.627 GB, free: 54.26 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002475/20.83, allocations: 7.953 kB / 6.627 GB, free: 54.25 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002555/20.83, allocations: 201 kB / 6.628 GB, free: 54.09 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.01572/20.85, allocations: 11.93 MB / 6.639 GB, free: 43.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002996/20.85, allocations: 2.163 MB / 6.641 GB, free: 41.76 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/20.85, allocations: 1.304 MB / 6.643 GB, free: 40.62 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008051/20.86, allocations: 5.852 MB / 6.648 GB, free: 35.23 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/20.86, allocations: 56.5 kB / 6.648 GB, free: 35.17 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001033/20.86, allocations: 136.4 kB / 6.649 GB, free: 35.05 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 4.578e-06/20.86, allocations: 0 / 6.649 GB, free: 35.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.02359/20.89, allocations: 8.573 MB / 6.657 GB, free: 27.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/20.89, allocations: 124.8 kB / 6.657 GB, free: 27.35 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001784/20.89, allocations: 1.204 MB / 6.658 GB, free: 26.14 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002305/20.89, allocations: 29.7 kB / 6.658 GB, free: 26.11 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004879/20.89, allocations: 1.045 MB / 6.659 GB, free: 25.05 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004756/20.89, allocations: 0.662 MB / 6.66 GB, free: 24.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/20.89, allocations: 0 / 6.66 GB, free: 24.39 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/20.89, allocations: 398.5 kB / 6.66 GB, free: 23.99 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001409/20.89, allocations: 1.156 MB / 6.661 GB, free: 22.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/20.89, allocations: 1.667 MB / 6.663 GB, free: 20.97 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005993/20.9, allocations: 2.36 MB / 6.665 GB, free: 18.64 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.61e-05/20.9, allocations: 4 kB / 6.665 GB, free: 18.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01014/20.91, allocations: 4.877 MB / 6.67 GB, free: 13.78 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001114/20.91, allocations: 5.779 MB / 6.676 GB, free: 7.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/20.91, allocations: 12 kB / 6.676 GB, free: 7.668 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007968/20.92, allocations: 2.585 MB / 6.678 GB, free: 5.082 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001372/20.92, allocations: 315.5 kB / 6.679 GB, free: 4.773 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007663/20.93, allocations: 4.553 MB / 6.683 GB, free: 192 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003422/20.93, allocations: 143.8 kB / 6.683 GB, free: 48 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.3343/21.27, allocations: 111.7 kB / 6.683 GB, free: 55.12 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/21.27, allocations: 2.844 kB / 6.683 GB, free: 55.12 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01154/21.28, allocations: 4.292 MB / 6.688 GB, free: 55.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.571e-05/21.28, allocations: 14.69 kB / 6.688 GB, free: 55.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008206/21.29, allocations: 2.274 MB / 6.69 GB, free: 55.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002135/21.29, allocations: 368.2 kB / 6.69 GB, free: 55.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007994/21.3, allocations: 3.826 MB / 6.694 GB, free: 54.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002919/21.3, allocations: 148.7 kB / 6.694 GB, free: 54.49 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003835/21.3, allocations: 102.8 kB / 6.694 GB, free: 54.49 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.0006638/21.3, allocations: 150.6 kB / 6.694 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01012/21.31, allocations: 3.443 MB / 6.698 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000766/21.31, allocations: 202.3 kB / 6.698 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009468/21.32, allocations: 4.074 MB / 6.702 GB, free: 54.07 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.361e-05/21.32, allocations: 27.48 kB / 6.702 GB, free: 54.07 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-05/21.32, allocations: 3.938 kB / 6.702 GB, free: 54.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007435/21.33, allocations: 3.543 MB / 6.705 GB, free: 53.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/21.34, allocations: 6.245 MB / 6.711 GB, free: 53.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/21.34, allocations: 3.906 kB / 6.711 GB, free: 53.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/21.34, allocations: 324.2 kB / 6.712 GB, free: 53.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002914/21.35, allocations: 1.004 MB / 6.713 GB, free: 53.14 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000306/21.35, allocations: 49.06 kB / 6.713 GB, free: 53.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008547/21.35, allocations: 10.35 MB / 6.723 GB, free: 45.54 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.341e-06/21.35, allocations: 0.8438 kB / 6.723 GB, free: 45.54 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/21.37, allocations: 5.284 MB / 6.728 GB, free: 45.15 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001734/21.37, allocations: 0.597 MB / 6.729 GB, free: 44.95 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005471/21.37, allocations: 31.08 kB / 6.729 GB, free: 44.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/21.37, allocations: 108 kB / 6.729 GB, free: 44.94 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003718/21.37, allocations: 165.7 kB / 6.729 GB, free: 44.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002036/21.37, allocations: 83.83 kB / 6.729 GB, free: 44.94 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001283/21.37, allocations: 0.8839 MB / 6.73 GB, free: 44.83 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.41e-07/21.37, allocations: 0 / 6.73 GB, free: 44.83 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00733/21.38, allocations: 1.8 MB / 6.732 GB, free: 44.83 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,5 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01378/21.39, allocations: 7.105 MB / 6.738 GB, free: 43.87 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008718/21.4, allocations: 4.737 MB / 6.743 GB, free: 43.77 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/21.4, allocations: 3.688 kB / 6.743 GB, free: 43.77 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003458/21.41, allocations: 2.11 MB / 6.745 GB, free: 43.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004562/21.41, allocations: 0.8224 MB / 6.746 GB, free: 43.21 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/21.42, allocations: 5.453 MB / 6.751 GB, free: 42.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001477/21.42, allocations: 1.937 MB / 6.753 GB, free: 41.44 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004145/21.43, allocations: 1.032 MB / 6.754 GB, free: 41.38 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001886/21.43, allocations: 0.9485 MB / 6.755 GB, free: 41.37 MB / 490.7 MB Notification: Performance of SimCode: time 1.113e-06/21.43, allocations: 3 kB / 6.755 GB, free: 41.37 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1397/21.57, allocations: 88.61 MB / 6.842 GB, free: 11.2 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/21.57, allocations: 122.2 kB / 6.842 GB, free: 11.01 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.333/26.9, allocations: 0 / 6.842 GB, free: 11.01 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