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.001389/0.001389, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001492/0.001492, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 57.53 kB / 307 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1012, allocations: 50.54 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2805/0.3817, allocations: 90.42 MB / 448 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03025/0.412, allocations: 21.34 MB / 469.3 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00288/0.4149, allocations: 87.44 kB / 469.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002676/0.4176, allocations: 0.9473 MB / 470.4 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00992/0.4275, allocations: 3.732 MB / 474.1 MB, free: 6.578 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01355/0.4411, allocations: 5.674 MB / 479.8 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008309/0.4494, allocations: 7.069 MB / 486.8 MB, free: 9.824 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002993/0.4524, allocations: 1.844 MB / 488.7 MB, free: 7.961 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.398/0.8505, allocations: 74.95 MB / 0.5504 GB, free: 49.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06529/0.9158, allocations: 31.95 MB / 0.5816 GB, free: 38.75 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009094/0.9168, allocations: 248 kB / 0.5819 GB, free: 38.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01276/0.9296, allocations: 6.109 MB / 0.5878 GB, free: 33.83 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001752/0.9314, allocations: 1.088 MB / 0.5889 GB, free: 33.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002374/0.9337, allocations: 1.501 MB / 0.5904 GB, free: 32.42 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008049/0.9418, allocations: 5.472 MB / 0.5957 GB, free: 28.34 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.9418, allocations: 0 / 0.5957 GB, free: 28.34 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.9419, allocations: 0 / 0.5957 GB, free: 28.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.592e-05/0.9419, allocations: 0 / 0.5957 GB, free: 28.34 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.008067/0.95, allocations: 3.501 MB / 0.5991 GB, free: 25.26 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.9501, allocations: 12.03 kB / 0.5991 GB, free: 25.25 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004596/0.9505, allocations: 338.4 kB / 0.5995 GB, free: 25.03 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008824/0.9514, allocations: 316.4 kB / 0.5998 GB, free: 24.72 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002332/0.9538, allocations: 1.572 MB / 0.6013 GB, free: 23.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/0.9539, allocations: 225.5 kB / 0.6015 GB, free: 23.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002962/0.9542, allocations: 197.8 kB / 0.6017 GB, free: 23.19 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004311/0.9585, allocations: 3.307 MB / 0.6049 GB, free: 20.76 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.599e-05/0.9586, allocations: 6.984 kB / 0.6049 GB, free: 20.75 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002296/0.9588, allocations: 86.23 kB / 0.605 GB, free: 20.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002792/0.9591, allocations: 259.2 kB / 0.6053 GB, free: 20.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004265/0.9634, allocations: 3.106 MB / 0.6083 GB, free: 18.45 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.01575/0.9792, allocations: 13.86 MB / 0.6218 GB, free: 5.129 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003428/0.9826, allocations: 2.217 MB / 0.624 GB, free: 2.922 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00178/0.9844, allocations: 1.354 MB / 0.6253 GB, free: 1.578 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008489/0.9929, allocations: 5.851 MB / 0.631 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.781e-05/0.993, allocations: 52.56 kB / 0.6311 GB, free: 11.19 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000752/0.9938, allocations: 173.9 kB / 0.6312 GB, free: 11.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 5.52e-06/0.9938, allocations: 0 / 0.6312 GB, free: 11.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.02155/1.015, allocations: 9.164 MB / 0.6402 GB, free: 1.789 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/1.015, allocations: 77.39 kB / 0.6403 GB, free: 1.699 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002507/1.018, allocations: 1.842 MB / 0.6421 GB, free: 15.82 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003422/1.018, allocations: 65.7 kB / 0.6421 GB, free: 15.75 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007137/1.019, allocations: 1.062 MB / 0.6432 GB, free: 14.68 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006321/1.02, allocations: 0.6866 MB / 0.6438 GB, free: 14 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007007/1.02, allocations: 448.4 kB / 0.6443 GB, free: 13.55 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.271e-05/1.02, allocations: 305.1 kB / 0.6446 GB, free: 13.25 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002019/1.022, allocations: 1.229 MB / 0.6458 GB, free: 12.01 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00232/1.025, allocations: 1.804 MB / 0.6475 GB, free: 9.973 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004613/1.029, allocations: 3.162 MB / 0.6506 GB, free: 6.641 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/1.029, allocations: 8 kB / 0.6506 GB, free: 6.633 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007247/1.037, allocations: 4.296 MB / 0.6548 GB, free: 2.43 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/1.037, allocations: 12 kB / 0.6548 GB, free: 2.418 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.638e-05/1.037, allocations: 16 kB / 0.6548 GB, free: 2.402 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0138/1.051, allocations: 3.649 MB / 0.6584 GB, free: 14.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/1.052, allocations: 329.1 kB / 0.6587 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00733/1.059, allocations: 3.951 MB / 0.6626 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002569/1.062, allocations: 99.94 kB / 0.6627 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006074/1.063, allocations: 112 kB / 0.6628 GB, free: 10.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00374/1.066, allocations: 1.676 MB / 0.6644 GB, free: 8.629 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002684/1.069, allocations: 1.753 MB / 0.6661 GB, free: 6.633 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004777/1.074, allocations: 3.049 MB / 0.6691 GB, free: 3.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.795e-05/1.074, allocations: 7.094 kB / 0.6691 GB, free: 3.406 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007187/1.081, allocations: 4.031 MB / 0.673 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/1.081, allocations: 15.94 kB / 0.6731 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.886e-05/1.081, allocations: 20 kB / 0.6731 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009639/1.091, allocations: 2.757 MB / 0.6758 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/1.092, allocations: 370 kB / 0.6761 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005901/1.098, allocations: 3.467 MB / 0.6795 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002088/1.1, allocations: 95.94 kB / 0.6796 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003547/1.101, allocations: 108 kB / 0.6797 GB, free: 8.691 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.000708/1.102, allocations: 320.4 kB / 0.68 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006601/1.102, allocations: 225.4 kB / 0.6802 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007841/1.11, allocations: 3.949 MB / 0.6841 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.497e-05/1.11, allocations: 24 kB / 0.6841 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.922e-05/1.11, allocations: 4 kB / 0.6841 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006611/1.117, allocations: 3.374 MB / 0.6874 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/1.128, allocations: 6.311 MB / 0.6936 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/1.128, allocations: 0 / 0.6936 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/1.129, allocations: 318.8 kB / 0.6939 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003934/1.133, allocations: 1.163 MB / 0.695 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001952/1.134, allocations: 71.95 kB / 0.6951 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009181/1.143, allocations: 11.09 MB / 0.7059 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/1.143, allocations: 0 / 0.7059 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008456/1.151, allocations: 5.163 MB / 0.7109 GB, free: 7.875 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/1.153, allocations: 0.6071 MB / 0.7115 GB, free: 7.246 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004794/1.153, allocations: 51.98 kB / 0.7116 GB, free: 7.195 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/1.154, allocations: 75.89 kB / 0.7117 GB, free: 7.121 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00036/1.155, allocations: 165.8 kB / 0.7118 GB, free: 6.957 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001833/1.155, allocations: 79.95 kB / 0.7119 GB, free: 6.879 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001779/1.157, allocations: 1.26 MB / 0.7131 GB, free: 5.598 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.71e-07/1.157, allocations: 0 / 0.7131 GB, free: 5.598 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004201/1.161, allocations: 1.738 MB / 0.7148 GB, free: 3.859 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.1663/1.327, allocations: 6.642 MB / 0.7213 GB, free: 241.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01676/1.344, allocations: 6.853 MB / 0.728 GB, free: 240.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/1.344, allocations: 192 / 0.728 GB, free: 240.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0043/1.348, allocations: 2.244 MB / 0.7302 GB, free: 239.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004847/1.353, allocations: 1.066 MB / 0.7312 GB, free: 239.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03006/1.383, allocations: 26.73 MB / 0.7573 GB, free: 222.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/1.384, allocations: 1.883 MB / 0.7592 GB, free: 220.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002748/1.387, allocations: 0.9525 MB / 0.7601 GB, free: 219.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009961/1.388, allocations: 1.007 MB / 0.7611 GB, free: 218.7 MB / 0.5294 GB Notification: Performance of SimCode: time 6.32e-07/1.388, allocations: 4 kB / 0.7611 GB, free: 218.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8127/2.201, allocations: 97.81 MB / 0.8566 GB, free: 121.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.74/18.94, allocations: 3.938 kB / 0.8566 GB, free: 121.2 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