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.001444/0.001444, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.915/1.915, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 95.98 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.817e-05/2.817e-05, allocations: 8 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3284, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.636/8.965, allocations: 3.153 GB / 3.507 GB, free: 52.77 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/8.965, allocations: 78.53 kB / 3.507 GB, free: 52.73 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 14/22.96, allocations: 3.066 GB / 6.574 GB, free: 32.55 MB / 459.1 MB Notification: Performance of FrontEnd: time 2.695e-06/22.96, allocations: 0 / 6.574 GB, free: 32.55 MB / 459.1 MB Notification: Performance of Transformations before backend: time 0.0003776/22.96, allocations: 64.59 kB / 6.574 GB, free: 32.54 MB / 459.1 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.01831/22.98, allocations: 3.595 MB / 6.577 GB, free: 30.79 MB / 459.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/22.98, allocations: 9.188 kB / 6.577 GB, free: 30.79 MB / 459.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00277/22.98, allocations: 306.7 kB / 6.578 GB, free: 30.64 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009322/22.99, allocations: 2.019 MB / 6.58 GB, free: 30.18 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003266/22.99, allocations: 150.3 kB / 6.58 GB, free: 30.11 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/22.99, allocations: 115.8 kB / 6.58 GB, free: 30.11 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008677/23, allocations: 2.852 MB / 6.583 GB, free: 30.1 MB / 459.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009517/23.01, allocations: 3.033 MB / 6.586 GB, free: 29.61 MB / 459.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-05/23.01, allocations: 11.88 kB / 6.586 GB, free: 29.61 MB / 459.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003869/23.01, allocations: 5.219 kB / 6.586 GB, free: 29.61 MB / 459.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004396/23.01, allocations: 200.9 kB / 6.586 GB, free: 29.61 MB / 459.1 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.03112/23.04, allocations: 11.93 MB / 6.597 GB, free: 24.7 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00593/23.05, allocations: 2.166 MB / 6.6 GB, free: 24.57 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003191/23.05, allocations: 1.309 MB / 6.601 GB, free: 24.55 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01475/23.07, allocations: 5.851 MB / 6.607 GB, free: 21.74 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.905e-05/23.07, allocations: 55.39 kB / 6.607 GB, free: 21.7 MB / 459.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001533/23.07, allocations: 133.9 kB / 6.607 GB, free: 21.62 MB / 459.1 MB Notification: Performance of pre-optimization done (n=172): time 6.443e-06/23.07, allocations: 0 / 6.607 GB, free: 21.62 MB / 459.1 MB Notification: Performance of matching and sorting (n=198): time 0.04112/23.11, allocations: 8.565 MB / 6.615 GB, free: 20.73 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/23.11, allocations: 126.2 kB / 6.615 GB, free: 20.6 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002489/23.11, allocations: 1.209 MB / 6.616 GB, free: 20.42 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006552/23.11, allocations: 29.55 kB / 6.616 GB, free: 20.39 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000701/23.12, allocations: 1.002 MB / 6.617 GB, free: 19.85 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008611/23.12, allocations: 0.6548 MB / 6.618 GB, free: 19.41 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002322/23.12, allocations: 0 / 6.618 GB, free: 19.41 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/23.12, allocations: 402.5 kB / 6.618 GB, free: 19.1 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0027/23.12, allocations: 1.158 MB / 6.62 GB, free: 19.09 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00345/23.12, allocations: 1.663 MB / 6.621 GB, free: 18.54 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02516/23.15, allocations: 3.8 MB / 6.625 GB, free: 18.52 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.481e-05/23.15, allocations: 6.5 kB / 6.625 GB, free: 18.52 MB / 459.1 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.03242/23.18, allocations: 6.201 MB / 6.631 GB, free: 18.39 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001158/23.18, allocations: 5.659 MB / 6.636 GB, free: 12.5 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.398e-05/23.18, allocations: 18.22 kB / 6.636 GB, free: 12.5 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01541/23.2, allocations: 2.583 MB / 6.639 GB, free: 12.45 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00238/23.2, allocations: 318.8 kB / 6.639 GB, free: 12.45 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01366/23.21, allocations: 4.555 MB / 6.644 GB, free: 11.84 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004233/23.22, allocations: 148.5 kB / 6.644 GB, free: 11.82 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000623/23.22, allocations: 115 kB / 6.644 GB, free: 11.82 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/23.22, allocations: 3.844 kB / 6.644 GB, free: 11.82 MB / 459.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03075/23.25, allocations: 5.727 MB / 6.65 GB, free: 11.77 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.558e-05/23.25, allocations: 12.5 kB / 6.65 GB, free: 11.77 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01261/23.26, allocations: 2.182 MB / 6.652 GB, free: 11.72 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00304/23.27, allocations: 369.3 kB / 6.652 GB, free: 11.72 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/23.28, allocations: 3.811 MB / 6.656 GB, free: 27.13 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003299/23.28, allocations: 145.6 kB / 6.656 GB, free: 27.11 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005534/23.28, allocations: 104.5 kB / 6.656 GB, free: 27.11 MB / 475.1 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.0008582/23.28, allocations: 155.2 kB / 6.656 GB, free: 27 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0145/23.3, allocations: 3.443 MB / 6.66 GB, free: 26.74 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/23.3, allocations: 203.5 kB / 6.66 GB, free: 26.64 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01622/23.31, allocations: 4.08 MB / 6.664 GB, free: 26.4 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.449e-05/23.31, allocations: 25.62 kB / 6.664 GB, free: 26.4 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.68e-05/23.31, allocations: 0 / 6.664 GB, free: 26.4 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01337/23.33, allocations: 3.542 MB / 6.667 GB, free: 25.94 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02206/23.35, allocations: 6.248 MB / 6.673 GB, free: 25.49 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-05/23.35, allocations: 2.844 kB / 6.673 GB, free: 25.49 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002962/23.35, allocations: 314.9 kB / 6.674 GB, free: 25.49 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005186/23.36, allocations: 1.019 MB / 6.675 GB, free: 25.43 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006212/23.36, allocations: 47.33 kB / 6.675 GB, free: 25.43 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01486/23.37, allocations: 10.34 MB / 6.685 GB, free: 17.76 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/23.37, allocations: 0 / 6.685 GB, free: 17.76 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01735/23.39, allocations: 5.282 MB / 6.69 GB, free: 15.84 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002539/23.39, allocations: 0.5999 MB / 6.691 GB, free: 15.49 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008639/23.39, allocations: 17.48 kB / 6.691 GB, free: 15.48 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003455/23.4, allocations: 114.7 kB / 6.691 GB, free: 15.47 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007139/23.4, allocations: 167.2 kB / 6.691 GB, free: 15.45 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003528/23.4, allocations: 84.12 kB / 6.691 GB, free: 15.43 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.002027/23.4, allocations: 0.8817 MB / 6.692 GB, free: 15.06 MB / 475.1 MB Notification: Performance of sort global known variables: time 6.02e-07/23.4, allocations: 5.531 kB / 6.692 GB, free: 15.05 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.01027/23.41, allocations: 1.804 MB / 6.694 GB, free: 14.75 MB / 475.1 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.02266/23.43, allocations: 7.085 MB / 6.7 GB, free: 12 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.01602/23.45, allocations: 4.681 MB / 6.705 GB, free: 10.54 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/23.45, allocations: 0 / 6.705 GB, free: 10.54 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006368/23.46, allocations: 2.128 MB / 6.707 GB, free: 9.5 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007651/23.46, allocations: 0.8204 MB / 6.708 GB, free: 9.336 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0192/23.48, allocations: 5.484 MB / 6.713 GB, free: 7.438 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002283/23.48, allocations: 1.897 MB / 6.715 GB, free: 6.59 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002816/23.49, allocations: 0.9954 MB / 6.716 GB, free: 5.84 MB / 475.1 MB Notification: Performance of SimCode: time 1.162e-06/23.49, allocations: 0 / 6.716 GB, free: 5.84 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.84/28.33, allocations: 97.04 MB / 6.811 GB, free: 34.17 MB / 475.1 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