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.0009494/0.0009492, allocations: 100.8 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009659/0.000966, allocations: 202.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003743/0.0003745, allocations: 4 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1511, allocations: 51.5 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2943/0.4455, allocations: 67.64 MB / 425.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03247/0.478, allocations: 20.71 MB / 446.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003184/0.4812, allocations: 107.1 kB / 446.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003067/0.4843, allocations: 0.9135 MB / 447.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009253/0.4936, allocations: 2.703 MB / 450.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01501/0.5086, allocations: 5.456 MB / 455.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008731/0.5174, allocations: 3.879 MB / 459.6 MB, free: 6.219 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003532/0.521, allocations: 1.53 MB / 461.1 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4705/0.9915, allocations: 123.9 MB / 0.5714 GB, free: 67.1 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.08627/1.078, allocations: 53.35 MB / 0.6235 GB, free: 19.53 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009972/1.079, allocations: 124 kB / 0.6236 GB, free: 19.41 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01444/1.093, allocations: 8.035 MB / 0.6314 GB, free: 12.38 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001902/1.095, allocations: 0.8744 MB / 0.6323 GB, free: 11.8 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001193/1.096, allocations: 0.5303 MB / 0.6328 GB, free: 11.49 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006604/1.103, allocations: 3.826 MB / 0.6365 GB, free: 8.195 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/1.103, allocations: 0 / 0.6365 GB, free: 8.195 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.174e-06/1.103, allocations: 0 / 0.6365 GB, free: 8.195 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.614e-05/1.103, allocations: 0 / 0.6365 GB, free: 8.195 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.006607/1.11, allocations: 3.009 MB / 0.6395 GB, free: 5.371 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/1.11, allocations: 14.84 kB / 0.6395 GB, free: 5.359 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005568/1.11, allocations: 346.1 kB / 0.6398 GB, free: 5.141 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000754/1.111, allocations: 312.5 kB / 0.6401 GB, free: 4.836 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002491/1.114, allocations: 1.525 MB / 0.6416 GB, free: 3.652 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/1.114, allocations: 219.1 kB / 0.6418 GB, free: 3.496 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000266/1.114, allocations: 201.1 kB / 0.642 GB, free: 3.363 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004084/1.118, allocations: 3.279 MB / 0.6452 GB, free: 0.957 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.586e-05/1.118, allocations: 7.844 kB / 0.6452 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002068/1.118, allocations: 86.3 kB / 0.6453 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002419/1.119, allocations: 252.9 kB / 0.6455 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004874/1.124, allocations: 3.103 MB / 0.6486 GB, free: 14.66 MB / 462.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.01875/1.142, allocations: 13.95 MB / 0.6622 GB, free: 2.488 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003744/1.146, allocations: 2.219 MB / 0.6643 GB, free: 1.066 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008724/1.155, allocations: 5.928 MB / 0.6701 GB, free: 11.82 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.616e-05/1.155, allocations: 61.22 kB / 0.6702 GB, free: 11.77 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009903/1.156, allocations: 187 kB / 0.6704 GB, free: 11.61 MB / 478.1 MB Notification: Performance of pre-optimization done (n=173): time 3.827e-06/1.156, allocations: 0 / 0.6704 GB, free: 11.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=199): time 0.02138/1.177, allocations: 9.309 MB / 0.6795 GB, free: 4.621 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.108e-05/1.177, allocations: 73.41 kB / 0.6795 GB, free: 4.535 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002584/1.18, allocations: 1.823 MB / 0.6813 GB, free: 3.133 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000303/1.18, allocations: 63.33 kB / 0.6814 GB, free: 3.094 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006477/1.181, allocations: 1.054 MB / 0.6824 GB, free: 2.434 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006529/1.182, allocations: 0.6862 MB / 0.6831 GB, free: 1.848 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/1.182, allocations: 50 kB / 0.6831 GB, free: 1.836 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/1.182, allocations: 404.7 kB / 0.6835 GB, free: 1.473 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001976/1.184, allocations: 1.206 MB / 0.6847 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00223/1.186, allocations: 1.777 MB / 0.6864 GB, free: 15.12 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00217/1.188, allocations: 1.468 MB / 0.6879 GB, free: 14.21 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/1.188, allocations: 8 kB / 0.6879 GB, free: 14.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=300) (initialization): time 0.006729/1.195, allocations: 4.249 MB / 0.692 GB, free: 11.35 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002395/1.198, allocations: 6.976 MB / 0.6988 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-05/1.198, allocations: 16 kB / 0.6988 GB, free: 3.938 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01368/1.211, allocations: 3.63 MB / 0.7024 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001537/1.213, allocations: 331.3 kB / 0.7027 GB, free: 432 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007099/1.22, allocations: 4.024 MB / 0.7066 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002472/1.223, allocations: 189.9 kB / 0.7068 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002999/1.223, allocations: 117.9 kB / 0.7069 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/1.223, allocations: 6.406 kB / 0.7069 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006611/1.23, allocations: 3.83 MB / 0.7107 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.01e-05/1.23, allocations: 16.94 kB / 0.7107 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0101/1.24, allocations: 2.883 MB / 0.7135 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001792/1.242, allocations: 376 kB / 0.7139 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005811/1.247, allocations: 3.523 MB / 0.7173 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003315/1.251, allocations: 191.8 kB / 0.7175 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003463/1.251, allocations: 108 kB / 0.7176 GB, free: 3.148 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * 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 (174): * Single equations (assignments): 173 * 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 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.001817/1.253, allocations: 0.7085 MB / 0.7183 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005484/1.253, allocations: 225.2 kB / 0.7185 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2227/1.476, allocations: 3.992 MB / 0.7224 GB, free: 211.9 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.638e-05/1.476, allocations: 25.78 kB / 0.7224 GB, free: 211.9 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.966e-05/1.476, allocations: 4.156 kB / 0.7224 GB, free: 211.9 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007057/1.483, allocations: 3.4 MB / 0.7257 GB, free: 211.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/1.496, allocations: 6.384 MB / 0.732 GB, free: 209 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/1.496, allocations: 0 / 0.732 GB, free: 209 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/1.498, allocations: 324.3 kB / 0.7323 GB, free: 209 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004371/1.502, allocations: 1.262 MB / 0.7335 GB, free: 208.7 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002811/1.502, allocations: 75.38 kB / 0.7336 GB, free: 208.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007559/1.51, allocations: 10.58 MB / 0.7439 GB, free: 199.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/1.51, allocations: 0 / 0.7439 GB, free: 199.6 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007765/1.518, allocations: 5.242 MB / 0.749 GB, free: 197.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001475/1.519, allocations: 0.622 MB / 0.7497 GB, free: 197.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003655/1.519, allocations: 55.75 kB / 0.7497 GB, free: 197.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/1.521, allocations: 149.3 kB / 0.7498 GB, free: 197.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003381/1.521, allocations: 168.4 kB / 0.75 GB, free: 197.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/1.521, allocations: 80.69 kB / 0.7501 GB, free: 197.3 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001414/1.523, allocations: 1.212 MB / 0.7513 GB, free: 196.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8.71e-07/1.523, allocations: 0 / 0.7513 GB, free: 196.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003935/1.527, allocations: 1.755 MB / 0.753 GB, free: 196.5 MB / 0.4981 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 (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%) 2,(1,100.0%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.009016/1.536, allocations: 6.676 MB / 0.7595 GB, free: 192.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008659/1.545, allocations: 5.03 MB / 0.7644 GB, free: 187.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.393e-06/1.545, allocations: 3.938 kB / 0.7644 GB, free: 187.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003532/1.548, allocations: 2.263 MB / 0.7666 GB, free: 185.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004192/1.552, allocations: 0.9402 MB / 0.7675 GB, free: 184.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/1.566, allocations: 20.32 MB / 0.7874 GB, free: 164.1 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/1.567, allocations: 1.929 MB / 0.7893 GB, free: 162.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003101/1.57, allocations: 0.9531 MB / 0.7902 GB, free: 161.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001129/1.571, allocations: 1.011 MB / 0.7912 GB, free: 160.2 MB / 0.4981 GB Notification: Performance of SimCode: time 2.204e-06/1.571, allocations: 0 / 0.7912 GB, free: 160.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2494/1.82, allocations: 90.91 MB / 0.88 GB, free: 69.63 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001235/1.821, allocations: 204.2 kB / 0.8802 GB, free: 69.38 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.668/6.488, allocations: 0 / 0.8802 GB, free: 69.38 MB / 0.4981 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/linux/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