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.001577/0.001577, allocations: 118.8 kB / 17.78 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0019/0.0019, allocations: 201.2 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2456, allocations: 50.53 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.0868/0.3324, allocations: 90.42 MB / 499.2 MB, free: 6.832 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0308/0.3633, allocations: 21.34 MB / 0.5083 GB, free: 1.434 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002673/0.366, allocations: 83.5 kB / 0.5084 GB, free: 1.352 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002811/0.3688, allocations: 0.9473 MB / 0.5093 GB, free: 408 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009146/0.378, allocations: 3.736 MB / 0.5129 GB, free: 12.64 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01234/0.3904, allocations: 5.68 MB / 0.5185 GB, free: 6.965 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.008127/0.3985, allocations: 7.062 MB / 0.5254 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003256/0.4018, allocations: 1.856 MB / 0.5272 GB, free: 14 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3779/0.7798, allocations: 75.02 MB / 0.6005 GB, free: 11.96 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0713/0.8511, allocations: 31.94 MB / 0.6317 GB, free: 1.012 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001106/0.8523, allocations: 248 kB / 0.6319 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01457/0.8669, allocations: 6.118 MB / 0.6379 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001922/0.8688, allocations: 1.093 MB / 0.6389 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.003248/0.8721, allocations: 1.496 MB / 0.6404 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01091/0.883, allocations: 5.538 MB / 0.6458 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.8831, allocations: 0 / 0.6458 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.803e-06/0.8831, allocations: 4 kB / 0.6458 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001215/0.8832, allocations: 0 / 0.6458 GB, free: 6.062 MB / 0.4981 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.009983/0.8932, allocations: 3.495 MB / 0.6492 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.8933, allocations: 8.031 kB / 0.6492 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000858/0.8941, allocations: 344.4 kB / 0.6496 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001206/0.8953, allocations: 312.5 kB / 0.6499 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003547/0.8989, allocations: 1.675 MB / 0.6515 GB, free: 288 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002427/0.8992, allocations: 222.8 kB / 0.6517 GB, free: 64 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005645/0.8998, allocations: 199.9 kB / 0.6519 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006169/0.9059, allocations: 3.306 MB / 0.6551 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-05/0.906, allocations: 7 kB / 0.6551 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003636/0.9064, allocations: 82.7 kB / 0.6552 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003237/0.9067, allocations: 250.8 kB / 0.6555 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005828/0.9126, allocations: 3.115 MB / 0.6585 GB, free: 9.086 MB / 0.5137 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.02164/0.9342, allocations: 13.8 MB / 0.672 GB, free: 10.58 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004507/0.9388, allocations: 2.221 MB / 0.6741 GB, free: 8.371 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002438/0.9413, allocations: 1.369 MB / 0.6755 GB, free: 7.004 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009812/0.9511, allocations: 5.853 MB / 0.6812 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.9512, allocations: 64.06 kB / 0.6813 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008399/0.952, allocations: 166 kB / 0.6814 GB, free: 456 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 5.64e-06/0.952, allocations: 0 / 0.6814 GB, free: 456 kB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02534/0.9774, allocations: 9.161 MB / 0.6904 GB, free: 7.215 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/0.9775, allocations: 73.41 kB / 0.6904 GB, free: 7.133 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/0.9805, allocations: 1.845 MB / 0.6922 GB, free: 5.246 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003587/0.9809, allocations: 61.08 kB / 0.6923 GB, free: 5.184 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008651/0.9818, allocations: 1.071 MB / 0.6933 GB, free: 4.105 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007785/0.9826, allocations: 0.6785 MB / 0.694 GB, free: 3.434 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009364/0.9835, allocations: 456.4 kB / 0.6944 GB, free: 2.98 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.716e-05/0.9836, allocations: 301.1 kB / 0.6947 GB, free: 2.684 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/0.9857, allocations: 1.24 MB / 0.6959 GB, free: 1.434 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002491/0.9882, allocations: 1.801 MB / 0.6977 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004709/0.993, allocations: 3.156 MB / 0.7008 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/0.993, allocations: 7.375 kB / 0.7008 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007574/1.001, allocations: 4.298 MB / 0.705 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/1.001, allocations: 19.06 kB / 0.705 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/1.001, allocations: 16 kB / 0.705 GB, free: 7.824 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01399/1.015, allocations: 3.633 MB / 0.7086 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/1.016, allocations: 325.6 kB / 0.7089 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007037/1.023, allocations: 3.953 MB / 0.7127 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002203/1.025, allocations: 95.94 kB / 0.7128 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000385/1.026, allocations: 116 kB / 0.7129 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003252/1.029, allocations: 1.668 MB / 0.7146 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002602/1.032, allocations: 1.756 MB / 0.7163 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004722/1.036, allocations: 3.043 MB / 0.7192 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.782e-05/1.036, allocations: 8 kB / 0.7193 GB, free: 8.855 MB / 0.5762 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007473/1.044, allocations: 4.032 MB / 0.7232 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.601e-05/1.044, allocations: 15.94 kB / 0.7232 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.103e-05/1.044, allocations: 16 kB / 0.7232 GB, free: 4.887 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009663/1.054, allocations: 2.748 MB / 0.7259 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001628/1.055, allocations: 382.8 kB / 0.7263 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005788/1.061, allocations: 3.458 MB / 0.7296 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002207/1.063, allocations: 91.94 kB / 0.7297 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004054/1.064, allocations: 116 kB / 0.7298 GB, free: 14.15 MB / 0.5919 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.0008049/1.065, allocations: 323.6 kB / 0.7302 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007654/1.066, allocations: 225.3 kB / 0.7304 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008093/1.074, allocations: 3.95 MB / 0.7342 GB, free: 9.676 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.239e-05/1.074, allocations: 27.98 kB / 0.7343 GB, free: 9.648 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/1.074, allocations: 0 / 0.7343 GB, free: 9.648 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00614/1.08, allocations: 3.372 MB / 0.7375 GB, free: 6.199 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01134/1.091, allocations: 6.302 MB / 0.7437 GB, free: 15.87 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/1.091, allocations: 4 kB / 0.7437 GB, free: 15.86 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001442/1.093, allocations: 312.8 kB / 0.744 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004102/1.097, allocations: 1.165 MB / 0.7451 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003711/1.097, allocations: 71.95 kB / 0.7452 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0101/1.107, allocations: 11.07 MB / 0.756 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/1.107, allocations: 0 / 0.756 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2056/1.313, allocations: 5.18 MB / 0.7611 GB, free: 282.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/1.314, allocations: 0.5984 MB / 0.7617 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004322/1.315, allocations: 54.81 kB / 0.7617 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/1.316, allocations: 76.2 kB / 0.7618 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003879/1.317, allocations: 164.5 kB / 0.7619 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001653/1.317, allocations: 85.56 kB / 0.762 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001428/1.318, allocations: 1.256 MB / 0.7632 GB, free: 282 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.1e-07/1.318, allocations: 0 / 0.7632 GB, free: 282 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003759/1.322, allocations: 1.74 MB / 0.7649 GB, free: 281.9 MB / 0.6075 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.00877/1.331, allocations: 6.645 MB / 0.7714 GB, free: 279.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00919/1.34, allocations: 5.117 MB / 0.7764 GB, free: 277.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/1.34, allocations: 0 / 0.7764 GB, free: 277.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003479/1.344, allocations: 2.242 MB / 0.7786 GB, free: 276 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004231/1.348, allocations: 1.062 MB / 0.7797 GB, free: 275.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03089/1.379, allocations: 24.16 MB / 0.8033 GB, free: 251 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/1.38, allocations: 1.883 MB / 0.8051 GB, free: 249.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002423/1.382, allocations: 0.9603 MB / 0.806 GB, free: 248.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001126/1.383, allocations: 1.007 MB / 0.807 GB, free: 247.1 MB / 0.6075 GB Notification: Performance of SimCode: time 9.02e-07/1.383, allocations: 0 / 0.807 GB, free: 247.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1296/1.513, allocations: 100.8 MB / 0.9055 GB, free: 146.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.89/18.4, allocations: 4.062 kB / 0.9055 GB, free: 146.6 MB / 0.6075 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