Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009759/0.0009758, allocations: 201 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 226.5 MB / 244.7 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007051/0.0007052, allocations: 98.53 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002423/0.0002425, allocations: 4 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1937, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.06948/0.2632, allocations: 86.81 MB / 494.9 MB, free: 4.652 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0273/0.2905, allocations: 20.59 MB / 0.5034 GB, free: 32 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.1797/0.4703, allocations: 103.2 kB / 0.5035 GB, free: 5.367 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002478/0.4728, allocations: 0.7729 MB / 0.5043 GB, free: 5.367 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008425/0.4813, allocations: 3.645 MB / 0.5078 GB, free: 5.332 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009627/0.4909, allocations: 4.464 MB / 0.5122 GB, free: 5.215 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00924/0.5002, allocations: 8.766 MB / 0.5208 GB, free: 5.211 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00253/0.5027, allocations: 1.561 MB / 0.5223 GB, free: 5.059 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1786/0.6813, allocations: 125.9 MB / 0.6452 GB, free: 14.23 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2692/0.9506, allocations: 55 MB / 0.6989 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0008254/0.9514, allocations: 124.8 kB / 0.699 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0141/0.9655, allocations: 8.241 MB / 0.7071 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.001922/0.9675, allocations: 0.9616 MB / 0.708 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.002506/0.97, allocations: 1.333 MB / 0.7093 GB, free: 148 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.005614/0.9757, allocations: 3.953 MB / 0.7132 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.9757, allocations: 0 / 0.7132 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.994e-06/0.9757, allocations: 0 / 0.7132 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.69e-05/0.9758, allocations: 3.781 kB / 0.7132 GB, free: 147.9 MB / 0.5105 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.007137/0.9829, allocations: 3.003 MB / 0.7161 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.983, allocations: 6.812 kB / 0.7161 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008586/0.9839, allocations: 340.2 kB / 0.7165 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008344/0.9847, allocations: 311.6 kB / 0.7167 GB, free: 146.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002379/0.9871, allocations: 1.581 MB / 0.7183 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.9873, allocations: 219 kB / 0.7185 GB, free: 145.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002975/0.9876, allocations: 195.5 kB / 0.7187 GB, free: 145.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004483/0.9921, allocations: 3.3 MB / 0.7219 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.836e-05/0.9921, allocations: 13.38 kB / 0.7219 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002137/0.9923, allocations: 83.3 kB / 0.722 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002499/0.9926, allocations: 250 kB / 0.7222 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004212/0.9968, allocations: 3.107 MB / 0.7253 GB, free: 144.1 MB / 0.5105 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.0149/1.012, allocations: 13.83 MB / 0.7388 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003307/1.015, allocations: 2.216 MB / 0.7409 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001742/1.017, allocations: 1.359 MB / 0.7423 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007443/1.024, allocations: 5.866 MB / 0.748 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/1.024, allocations: 53.98 kB / 0.7481 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008365/1.025, allocations: 187.7 kB / 0.7482 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=171): time 4.128e-06/1.025, allocations: 0 / 0.7482 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=197): time 0.01993/1.045, allocations: 9.202 MB / 0.7572 GB, free: 119 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/1.045, allocations: 69.41 kB / 0.7573 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/1.047, allocations: 1.833 MB / 0.7591 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003764/1.048, allocations: 59.77 kB / 0.7591 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005252/1.048, allocations: 1.064 MB / 0.7602 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005257/1.049, allocations: 0.681 MB / 0.7608 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/1.049, allocations: 48.12 kB / 0.7609 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001029/1.049, allocations: 402.2 kB / 0.7613 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/1.051, allocations: 1.188 MB / 0.7624 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001817/1.053, allocations: 1.775 MB / 0.7642 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003652/1.056, allocations: 3.108 MB / 0.7672 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/1.056, allocations: 10.25 kB / 0.7672 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.005876/1.062, allocations: 4.216 MB / 0.7713 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002328/1.062, allocations: 0.6056 MB / 0.7719 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.922e-05/1.062, allocations: 16 kB / 0.7719 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0124/1.075, allocations: 3.659 MB / 0.7755 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/1.076, allocations: 333.5 kB / 0.7758 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005311/1.081, allocations: 3.946 MB / 0.7797 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/1.084, allocations: 185.7 kB / 0.7798 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002351/1.084, allocations: 115.6 kB / 0.78 GB, free: 101 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.428e-06/1.084, allocations: 7.656 kB / 0.78 GB, free: 101 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005022/1.089, allocations: 3.792 MB / 0.7837 GB, free: 98.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/1.089, allocations: 20 kB / 0.7837 GB, free: 98.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008526/1.098, allocations: 2.842 MB / 0.7865 GB, free: 96.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001454/1.099, allocations: 378.5 kB / 0.7868 GB, free: 95.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004346/1.103, allocations: 3.465 MB / 0.7902 GB, free: 93.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/1.105, allocations: 180.6 kB / 0.7904 GB, free: 93.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002064/1.106, allocations: 106.7 kB / 0.7905 GB, free: 93.07 MB / 0.5105 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.001148/1.107, allocations: 0.7066 MB / 0.7912 GB, free: 92.59 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/1.107, allocations: 229.2 kB / 0.7914 GB, free: 92.36 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006114/1.113, allocations: 3.96 MB / 0.7953 GB, free: 89.63 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.04e-05/1.113, allocations: 24 kB / 0.7953 GB, free: 89.61 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/1.113, allocations: 0 / 0.7953 GB, free: 89.61 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004561/1.118, allocations: 3.384 MB / 0.7986 GB, free: 87.14 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008544/1.126, allocations: 6.31 MB / 0.8047 GB, free: 81.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.616e-05/1.126, allocations: 0 / 0.8047 GB, free: 81.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/1.128, allocations: 321.9 kB / 0.8051 GB, free: 80.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003879/1.132, allocations: 1.226 MB / 0.8063 GB, free: 79.67 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002282/1.132, allocations: 75.95 kB / 0.8063 GB, free: 79.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006739/1.139, allocations: 10.46 MB / 0.8165 GB, free: 68.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/1.139, allocations: 3.938 kB / 0.8165 GB, free: 68.45 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007306/1.146, allocations: 5.182 MB / 0.8216 GB, free: 63.24 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/1.147, allocations: 0.6104 MB / 0.8222 GB, free: 62.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005065/1.148, allocations: 51.98 kB / 0.8223 GB, free: 62.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001647/1.149, allocations: 143.7 kB / 0.8224 GB, free: 62.42 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004494/1.15, allocations: 173.7 kB / 0.8226 GB, free: 62.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/1.15, allocations: 79.95 kB / 0.8226 GB, free: 62.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001551/1.152, allocations: 1.237 MB / 0.8238 GB, free: 60.92 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.1e-07/1.152, allocations: 0 / 0.8238 GB, free: 60.92 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004286/1.156, allocations: 1.753 MB / 0.8256 GB, free: 59.16 MB / 0.5105 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.009249/1.165, allocations: 6.655 MB / 0.832 GB, free: 52.57 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008526/1.174, allocations: 4.945 MB / 0.8369 GB, free: 47.72 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/1.174, allocations: 8.125 kB / 0.8369 GB, free: 47.71 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003492/1.177, allocations: 2.237 MB / 0.8391 GB, free: 45.45 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005037/1.182, allocations: 0.983 MB / 0.84 GB, free: 44.48 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02754/1.21, allocations: 19.61 MB / 0.8592 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/1.211, allocations: 1.85 MB / 0.861 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001328/1.212, allocations: 1.021 MB / 0.862 GB, free: 20.77 MB / 0.5105 GB Notification: Performance of SimCode: time 1.072e-06/1.212, allocations: 0 / 0.862 GB, free: 20.77 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.879/9.091, allocations: 93.86 MB / 0.9536 GB, free: 168.4 MB / 0.5105 GB (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat