Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001112, allocations: 109.8 kB / 17.33 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 201.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 246.4 MB, free: 9.082 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 67.69 kB / 306.6 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08794/0.08915, allocations: 50.52 MB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2386/0.3278, allocations: 93.52 MB / 450.6 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03123/0.3591, allocations: 21.81 MB / 472.4 MB, free: 8.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003159/0.3623, allocations: 111.1 kB / 472.5 MB, free: 7.926 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003001/0.3653, allocations: 0.8238 MB / 473.3 MB, free: 7.098 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009905/0.3753, allocations: 3.517 MB / 476.8 MB, free: 3.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01209/0.3874, allocations: 5.22 MB / 482.1 MB, free: 14.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008633/0.3961, allocations: 7.093 MB / 489.2 MB, free: 7.246 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003151/0.3992, allocations: 1.842 MB / 491 MB, free: 5.387 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3384/0.7377, allocations: 74.52 MB / 0.5523 GB, free: 47.08 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.051/0.7887, allocations: 32.14 MB / 0.5837 GB, free: 34.94 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000837/0.7896, allocations: 248 kB / 0.5839 GB, free: 34.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009962/0.7995, allocations: 6.132 MB / 0.5899 GB, free: 29.91 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000935/0.8005, allocations: 1.099 MB / 0.591 GB, free: 29.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001616/0.8021, allocations: 1.503 MB / 0.5924 GB, free: 28.51 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006211/0.8083, allocations: 5.476 MB / 0.5978 GB, free: 24.41 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.318e-05/0.8084, allocations: 8 kB / 0.5978 GB, free: 24.4 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.8084, allocations: 0 / 0.5978 GB, free: 24.4 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001136/0.8085, allocations: 0 / 0.5978 GB, free: 24.4 MB / 446.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.006667/0.8152, allocations: 3.499 MB / 0.6012 GB, free: 21.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.8153, allocations: 12.03 kB / 0.6012 GB, free: 21.28 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004385/0.8157, allocations: 339.8 kB / 0.6015 GB, free: 21.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008493/0.8166, allocations: 319.1 kB / 0.6018 GB, free: 20.76 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00207/0.8186, allocations: 1.582 MB / 0.6034 GB, free: 19.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.8188, allocations: 220.7 kB / 0.6036 GB, free: 19.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002787/0.8191, allocations: 194.5 kB / 0.6038 GB, free: 19.23 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004287/0.8234, allocations: 3.302 MB / 0.607 GB, free: 16.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.68e-05/0.8234, allocations: 11.75 kB / 0.607 GB, free: 16.79 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/0.8236, allocations: 86.33 kB / 0.6071 GB, free: 16.76 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002301/0.8239, allocations: 258 kB / 0.6073 GB, free: 16.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004142/0.828, allocations: 3.109 MB / 0.6104 GB, free: 14.48 MB / 446.1 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.01412/0.8422, allocations: 13.79 MB / 0.6238 GB, free: 1.359 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003682/0.8459, allocations: 2.222 MB / 0.626 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002093/0.848, allocations: 1.35 MB / 0.6273 GB, free: 13.81 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008695/0.8567, allocations: 5.857 MB / 0.633 GB, free: 7.48 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.8567, allocations: 56.56 kB / 0.6331 GB, free: 7.418 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006305/0.8574, allocations: 185.8 kB / 0.6333 GB, free: 7.234 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 3.196e-06/0.8574, allocations: 0 / 0.6333 GB, free: 7.234 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.02258/0.88, allocations: 9.148 MB / 0.6422 GB, free: 14.02 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.88, allocations: 73.41 kB / 0.6423 GB, free: 13.93 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/0.8826, allocations: 1.845 MB / 0.6441 GB, free: 12.05 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001759/0.8828, allocations: 61.7 kB / 0.6441 GB, free: 11.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008509/0.8836, allocations: 1.063 MB / 0.6452 GB, free: 10.91 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005802/0.8842, allocations: 0.6824 MB / 0.6458 GB, free: 10.23 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007843/0.885, allocations: 460.3 kB / 0.6463 GB, free: 9.777 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.189e-05/0.8851, allocations: 301.1 kB / 0.6466 GB, free: 9.48 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002056/0.8872, allocations: 1.229 MB / 0.6478 GB, free: 8.242 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002543/0.8897, allocations: 1.809 MB / 0.6495 GB, free: 6.199 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004664/0.8944, allocations: 3.157 MB / 0.6526 GB, free: 2.875 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/0.8944, allocations: 8 kB / 0.6526 GB, free: 2.867 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007637/0.9021, allocations: 4.293 MB / 0.6568 GB, free: 14.67 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.9021, allocations: 15.98 kB / 0.6568 GB, free: 14.65 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.607e-05/0.9022, allocations: 19.94 kB / 0.6569 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01422/0.9164, allocations: 3.643 MB / 0.6604 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.9176, allocations: 332.6 kB / 0.6607 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006526/0.9241, allocations: 3.945 MB / 0.6646 GB, free: 6.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002035/0.9262, allocations: 191.7 kB / 0.6648 GB, free: 6.562 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002333/0.9264, allocations: 116 kB / 0.6649 GB, free: 6.449 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002889/0.9293, allocations: 1.672 MB / 0.6665 GB, free: 4.77 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002334/0.9317, allocations: 1.751 MB / 0.6682 GB, free: 2.773 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004313/0.936, allocations: 3.048 MB / 0.6712 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.015e-05/0.936, allocations: 4 kB / 0.6712 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006603/0.9426, allocations: 4.033 MB / 0.6751 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.9427, allocations: 15.94 kB / 0.6752 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.212e-05/0.9427, allocations: 20 kB / 0.6752 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009562/0.9523, allocations: 2.76 MB / 0.6779 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/0.9537, allocations: 380 kB / 0.6782 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005246/0.9589, allocations: 3.462 MB / 0.6816 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.9609, allocations: 183.8 kB / 0.6818 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/0.9611, allocations: 108 kB / 0.6819 GB, free: 4.742 MB / 0.4981 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.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.0006461/0.9618, allocations: 321 kB / 0.6822 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004252/0.9622, allocations: 229.2 kB / 0.6824 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007567/0.9698, allocations: 3.954 MB / 0.6863 GB, free: 272 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.397e-05/0.9698, allocations: 24 kB / 0.6863 GB, free: 248 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.9698, allocations: 7.281 kB / 0.6863 GB, free: 244 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005821/0.9756, allocations: 3.371 MB / 0.6896 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/0.9871, allocations: 6.305 MB / 0.6958 GB, free: 6.453 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.9871, allocations: 0 / 0.6958 GB, free: 6.453 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/0.9886, allocations: 321.5 kB / 0.6961 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004336/0.993, allocations: 1.167 MB / 0.6972 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002184/0.9932, allocations: 75.95 kB / 0.6973 GB, free: 4.898 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01049/1.004, allocations: 11.07 MB / 0.7081 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.004, allocations: 0 / 0.7081 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009498/1.013, allocations: 5.174 MB / 0.7131 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/1.015, allocations: 0.607 MB / 0.7137 GB, free: 3.289 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004791/1.015, allocations: 55.98 kB / 0.7138 GB, free: 3.234 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/1.017, allocations: 135.7 kB / 0.7139 GB, free: 3.102 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000487/1.017, allocations: 172.8 kB / 0.7141 GB, free: 2.934 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001937/1.017, allocations: 75.95 kB / 0.7141 GB, free: 2.859 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001815/1.019, allocations: 1.264 MB / 0.7154 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/1.019, allocations: 0 / 0.7154 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.1534/1.173, allocations: 1.745 MB / 0.7171 GB, free: 240.9 MB / 0.5294 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 (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01164/1.184, allocations: 6.644 MB / 0.7236 GB, free: 240 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01553/1.2, allocations: 6.857 MB / 0.7303 GB, free: 238.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.2, allocations: 1.25 kB / 0.7303 GB, free: 238.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003857/1.204, allocations: 2.247 MB / 0.7325 GB, free: 237.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004718/1.209, allocations: 1.062 MB / 0.7335 GB, free: 237 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03369/1.242, allocations: 27.62 MB / 0.7605 GB, free: 218 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009889/1.243, allocations: 1.878 MB / 0.7623 GB, free: 216.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002981/1.246, allocations: 0.9565 MB / 0.7632 GB, free: 215.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/1.247, allocations: 1.007 MB / 0.7642 GB, free: 214.1 MB / 0.5294 GB Notification: Performance of SimCode: time 9.52e-07/1.247, allocations: 0 / 0.7642 GB, free: 214.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1346/1.382, allocations: 97.46 MB / 0.8594 GB, free: 117 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/1.382, allocations: 221.3 kB / 0.8596 GB, free: 116.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.429/5.811, allocations: 0 / 0.8596 GB, free: 116.7 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat