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.0008657/0.0008658, allocations: 176.1 kB / 16.72 MB, free: 4.953 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.152/1.152, allocations: 205.4 MB / 222.9 MB, free: 9.004 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.0007457/0.0007459, allocations: 90.34 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.000277, allocations: 15.98 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1959, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.07182/0.2678, allocations: 86.72 MB / 461.9 MB, free: 9.754 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02841/0.2962, allocations: 20.56 MB / 482.5 MB, free: 5.152 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003051/0.2993, allocations: 107.1 kB / 482.6 MB, free: 5.047 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002707/0.3021, allocations: 0.7765 MB / 483.4 MB, free: 4.266 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009246/0.3113, allocations: 3.62 MB / 487 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01105/0.3224, allocations: 4.458 MB / 491.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009786/0.3322, allocations: 8.747 MB / 0.4885 GB, free: 3.402 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003133/0.3354, allocations: 1.557 MB / 0.49 GB, free: 1.828 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3745/0.7099, allocations: 126.3 MB / 0.6133 GB, free: 5.445 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07573/0.7857, allocations: 54.97 MB / 0.667 GB, free: 3.504 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0008646/0.7866, allocations: 124 kB / 0.6671 GB, free: 3.383 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2069/0.9934, allocations: 8.211 MB / 0.6751 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.001805/0.9953, allocations: 0.9643 MB / 0.676 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.002092/0.9974, allocations: 1.331 MB / 0.6773 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.006081/1.003, allocations: 3.937 MB / 0.6812 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/1.004, allocations: 3.781 kB / 0.6812 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.427e-06/1.004, allocations: 0.5938 kB / 0.6812 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.904e-05/1.004, allocations: 0 / 0.6812 GB, free: 137.6 MB / 0.4948 GB 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.009762/1.013, allocations: 3 MB / 0.6841 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/1.013, allocations: 9.812 kB / 0.6841 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001316/1.015, allocations: 341 kB / 0.6845 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001272/1.016, allocations: 314.3 kB / 0.6848 GB, free: 136 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003028/1.019, allocations: 1.579 MB / 0.6863 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000194/1.019, allocations: 220.8 kB / 0.6865 GB, free: 135.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003594/1.02, allocations: 199.2 kB / 0.6867 GB, free: 135.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004917/1.025, allocations: 3.292 MB / 0.6899 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.168e-05/1.025, allocations: 6.781 kB / 0.6899 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002433/1.025, allocations: 89.5 kB / 0.69 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002919/1.025, allocations: 246.5 kB / 0.6902 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004823/1.03, allocations: 3.108 MB / 0.6933 GB, free: 135.1 MB / 0.4948 GB 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.01753/1.048, allocations: 13.82 MB / 0.7068 GB, free: 128.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003456/1.051, allocations: 2.212 MB / 0.7089 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00181/1.053, allocations: 1.356 MB / 0.7103 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007514/1.06, allocations: 5.872 MB / 0.716 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/1.061, allocations: 63.09 kB / 0.716 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009091/1.061, allocations: 179.9 kB / 0.7162 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=171): time 3.397e-06/1.061, allocations: 3.594 kB / 0.7162 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=197): time 0.0196/1.081, allocations: 9.206 MB / 0.7252 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/1.081, allocations: 77.69 kB / 0.7253 GB, free: 122.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/1.083, allocations: 1.828 MB / 0.7271 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002304/1.084, allocations: 60.02 kB / 0.7271 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005145/1.084, allocations: 1.07 MB / 0.7282 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004224/1.084, allocations: 0.6745 MB / 0.7288 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/1.085, allocations: 52 kB / 0.7289 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001003/1.085, allocations: 402 kB / 0.7293 GB, free: 120.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/1.086, allocations: 1.199 MB / 0.7304 GB, free: 120.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/1.088, allocations: 1.777 MB / 0.7322 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004104/1.092, allocations: 3.108 MB / 0.7352 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/1.092, allocations: 4 kB / 0.7352 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006114/1.099, allocations: 4.208 MB / 0.7393 GB, free: 113.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002919/1.099, allocations: 0.5984 MB / 0.7399 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/1.099, allocations: 16 kB / 0.7399 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01256/1.111, allocations: 3.67 MB / 0.7435 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/1.113, allocations: 333.1 kB / 0.7438 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005678/1.119, allocations: 3.938 MB / 0.7477 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002623/1.121, allocations: 186.8 kB / 0.7478 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/1.121, allocations: 114.5 kB / 0.748 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/1.122, allocations: 4 kB / 0.748 GB, free: 106.2 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005353/1.127, allocations: 3.799 MB / 0.7517 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.372e-05/1.127, allocations: 24 kB / 0.7517 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008587/1.136, allocations: 2.829 MB / 0.7545 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/1.137, allocations: 386.4 kB / 0.7548 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004563/1.142, allocations: 3.458 MB / 0.7582 GB, free: 98.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002511/1.144, allocations: 187.1 kB / 0.7584 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002982/1.145, allocations: 109.3 kB / 0.7585 GB, free: 98.21 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (175): * Single equations (assignments): 174 * 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.001324/1.146, allocations: 0.7025 MB / 0.7592 GB, free: 97.73 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004466/1.146, allocations: 229.2 kB / 0.7594 GB, free: 97.51 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0065/1.153, allocations: 3.963 MB / 0.7633 GB, free: 94.77 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.326e-05/1.153, allocations: 24 kB / 0.7633 GB, free: 94.75 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/1.153, allocations: 0 / 0.7633 GB, free: 94.75 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004803/1.158, allocations: 3.383 MB / 0.7666 GB, free: 92.27 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009575/1.167, allocations: 6.308 MB / 0.7727 GB, free: 87.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/1.167, allocations: 0 / 0.7727 GB, free: 87.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/1.169, allocations: 323.2 kB / 0.7731 GB, free: 87.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003919/1.173, allocations: 1.23 MB / 0.7743 GB, free: 86.54 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002463/1.173, allocations: 72.27 kB / 0.7743 GB, free: 86.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007165/1.18, allocations: 10.45 MB / 0.7845 GB, free: 76.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.18, allocations: 3.984 kB / 0.7845 GB, free: 76.52 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007631/1.188, allocations: 5.19 MB / 0.7896 GB, free: 72.86 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001497/1.189, allocations: 0.6035 MB / 0.7902 GB, free: 72.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003572/1.19, allocations: 59.97 kB / 0.7902 GB, free: 72.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/1.191, allocations: 147.7 kB / 0.7904 GB, free: 72.04 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004805/1.192, allocations: 169.7 kB / 0.7905 GB, free: 71.87 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001773/1.192, allocations: 83.89 kB / 0.7906 GB, free: 71.79 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001444/1.193, allocations: 1.24 MB / 0.7918 GB, free: 70.53 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.1e-07/1.193, allocations: 4 kB / 0.7918 GB, free: 70.53 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004539/1.198, allocations: 1.738 MB / 0.7935 GB, free: 68.79 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,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 (182): * Single equations (assignments): 168 * 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%) 2,(1,100.0%) 6} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.009691/1.208, allocations: 6.643 MB / 0.8 GB, free: 62.19 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00882/1.216, allocations: 4.954 MB / 0.8049 GB, free: 57.34 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.216, allocations: 5.938 kB / 0.8049 GB, free: 57.34 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003478/1.22, allocations: 2.236 MB / 0.8071 GB, free: 55.08 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004896/1.225, allocations: 0.9823 MB / 0.808 GB, free: 54.11 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02892/1.254, allocations: 19.6 MB / 0.8272 GB, free: 33.31 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/1.255, allocations: 1.852 MB / 0.829 GB, free: 31.42 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001317/1.256, allocations: 1.022 MB / 0.83 GB, free: 30.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.072e-06/1.256, allocations: 0 / 0.83 GB, free: 30.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.833/9.089, allocations: 93.54 MB / 0.9213 GB, free: 180.8 MB / 0.4948 GB (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