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.001014/0.001014, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 227.4 MB / 246.3 MB, free: 9.027 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001057/0.001057, allocations: 62.28 kB / 306.3 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08218/0.08325, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2285/0.3118, allocations: 95.79 MB / 452.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02847/0.3403, allocations: 22.65 MB / 475.3 MB, free: 5.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002852/0.3432, allocations: 111.1 kB / 475.4 MB, free: 5.105 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002586/0.3458, allocations: 0.8277 MB / 476.2 MB, free: 4.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008799/0.3547, allocations: 3.516 MB / 479.8 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01069/0.3654, allocations: 4.948 MB / 484.7 MB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009541/0.3749, allocations: 10.75 MB / 495.5 MB, free: 1.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002551/0.3775, allocations: 1.602 MB / 497.1 MB, free: 15.4 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3534/0.7309, allocations: 73.47 MB / 0.5572 GB, free: 39.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05547/0.7864, allocations: 31.99 MB / 0.5884 GB, free: 27.95 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007339/0.7872, allocations: 132 kB / 0.5885 GB, free: 27.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01116/0.7984, allocations: 6.002 MB / 0.5944 GB, free: 23.12 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009706/0.7993, allocations: 0.9753 MB / 0.5953 GB, free: 22.47 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001635/0.801, allocations: 1.381 MB / 0.5967 GB, free: 21.74 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005346/0.8063, allocations: 5.382 MB / 0.6019 GB, free: 17.68 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.8064, allocations: 0 / 0.6019 GB, free: 17.68 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.8064, allocations: 0 / 0.6019 GB, free: 17.68 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.612e-05/0.8064, allocations: 0 / 0.6019 GB, free: 17.68 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.006351/0.8128, allocations: 3.509 MB / 0.6054 GB, free: 14.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.8128, allocations: 8.031 kB / 0.6054 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004365/0.8132, allocations: 345 kB / 0.6057 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007623/0.814, allocations: 308.5 kB / 0.606 GB, free: 14.08 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001885/0.8159, allocations: 1.582 MB / 0.6075 GB, free: 12.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.816, allocations: 216.4 kB / 0.6078 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002605/0.8163, allocations: 199.9 kB / 0.6079 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003822/0.8201, allocations: 3.302 MB / 0.6112 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.099e-05/0.8202, allocations: 14.19 kB / 0.6112 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001973/0.8204, allocations: 83.48 kB / 0.6113 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002079/0.8206, allocations: 253.8 kB / 0.6115 GB, free: 9.875 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003813/0.8244, allocations: 3.116 MB / 0.6145 GB, free: 7.801 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.01393/0.8384, allocations: 13.79 MB / 0.628 GB, free: 11.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003651/0.842, allocations: 2.222 MB / 0.6302 GB, free: 9.828 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001877/0.8439, allocations: 1.354 MB / 0.6315 GB, free: 8.484 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007113/0.851, allocations: 5.852 MB / 0.6372 GB, free: 2.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.8511, allocations: 58.42 kB / 0.6373 GB, free: 2.098 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005051/0.8516, allocations: 177.9 kB / 0.6374 GB, free: 1.922 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 2.805e-06/0.8516, allocations: 1.125 kB / 0.6374 GB, free: 1.922 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.01984/0.8715, allocations: 9.154 MB / 0.6464 GB, free: 8.703 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.8715, allocations: 69.41 kB / 0.6465 GB, free: 8.621 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002151/0.8737, allocations: 1.853 MB / 0.6483 GB, free: 6.727 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001366/0.8738, allocations: 61.7 kB / 0.6483 GB, free: 6.66 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006506/0.8745, allocations: 1.063 MB / 0.6494 GB, free: 5.59 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004695/0.875, allocations: 0.6743 MB / 0.65 GB, free: 4.922 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006991/0.8757, allocations: 464.3 kB / 0.6505 GB, free: 4.461 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.851e-05/0.8758, allocations: 305.1 kB / 0.6508 GB, free: 4.16 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001829/0.8776, allocations: 1.235 MB / 0.652 GB, free: 2.918 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002204/0.8798, allocations: 1.804 MB / 0.6537 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004296/0.8841, allocations: 3.163 MB / 0.6568 GB, free: 13.55 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.268e-06/0.8841, allocations: 7.375 kB / 0.6568 GB, free: 13.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006717/0.8909, allocations: 4.287 MB / 0.661 GB, free: 9.348 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.8909, allocations: 12 kB / 0.661 GB, free: 9.336 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.8909, allocations: 20 kB / 0.661 GB, free: 9.316 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01318/0.9041, allocations: 3.634 MB / 0.6646 GB, free: 5.699 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.9054, allocations: 329.2 kB / 0.6649 GB, free: 5.402 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006317/0.9117, allocations: 3.946 MB / 0.6687 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/0.9139, allocations: 187.7 kB / 0.6689 GB, free: 1.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003086/0.9143, allocations: 122.9 kB / 0.669 GB, free: 1.152 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002901/0.9172, allocations: 1.668 MB / 0.6707 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002259/0.9195, allocations: 1.756 MB / 0.6724 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004176/0.9236, allocations: 3.049 MB / 0.6754 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.424e-05/0.9237, allocations: 4 kB / 0.6754 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006558/0.9302, allocations: 4.025 MB / 0.6793 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.9303, allocations: 23.97 kB / 0.6793 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.9303, allocations: 16 kB / 0.6793 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009228/0.9395, allocations: 2.742 MB / 0.682 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.941, allocations: 374.9 kB / 0.6824 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005187/0.9462, allocations: 3.464 MB / 0.6858 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/0.9484, allocations: 183.8 kB / 0.6859 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002671/0.9486, allocations: 108.7 kB / 0.686 GB, free: 15.48 MB / 0.5137 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.0006055/0.9493, allocations: 326.5 kB / 0.6863 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000586/0.9499, allocations: 229.2 kB / 0.6866 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007509/0.9574, allocations: 3.949 MB / 0.6904 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.672e-05/0.9574, allocations: 27.98 kB / 0.6904 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-05/0.9574, allocations: 4 kB / 0.6905 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005384/0.9628, allocations: 3.374 MB / 0.6937 GB, free: 7.531 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/0.9732, allocations: 6.299 MB / 0.6999 GB, free: 1.203 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.9733, allocations: 0 / 0.6999 GB, free: 1.203 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/0.9746, allocations: 322.3 kB / 0.7002 GB, free: 0.9062 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004107/0.9787, allocations: 1.2 MB / 0.7014 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002011/0.9789, allocations: 71.95 kB / 0.7014 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008632/0.9876, allocations: 10.44 MB / 0.7116 GB, free: 4.496 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.9876, allocations: 0 / 0.7116 GB, free: 4.496 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1462/1.134, allocations: 5.181 MB / 0.7167 GB, free: 240.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001371/1.135, allocations: 0.5909 MB / 0.7173 GB, free: 240.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003682/1.136, allocations: 54.89 kB / 0.7173 GB, free: 240.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001513/1.137, allocations: 142.9 kB / 0.7175 GB, free: 240.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003947/1.137, allocations: 172.2 kB / 0.7176 GB, free: 240.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001893/1.138, allocations: 79.08 kB / 0.7177 GB, free: 240.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001645/1.139, allocations: 1.259 MB / 0.7189 GB, free: 240.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/1.139, allocations: 1.219 kB / 0.7189 GB, free: 240.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003775/1.143, allocations: 1.752 MB / 0.7206 GB, free: 240.4 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), (6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009602/1.153, allocations: 6.644 MB / 0.7271 GB, free: 238.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009444/1.162, allocations: 5.069 MB / 0.7321 GB, free: 236.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/1.162, allocations: 4.688 kB / 0.7321 GB, free: 236.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003392/1.166, allocations: 2.235 MB / 0.7343 GB, free: 235.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003845/1.169, allocations: 1.009 MB / 0.7353 GB, free: 235.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03115/1.201, allocations: 27.61 MB / 0.7622 GB, free: 215.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009534/1.202, allocations: 1.874 MB / 0.764 GB, free: 213.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002621/1.204, allocations: 0.9534 MB / 0.765 GB, free: 212.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009982/1.205, allocations: 1.011 MB / 0.766 GB, free: 211.6 MB / 0.5294 GB Notification: Performance of SimCode: time 8.02e-07/1.205, allocations: 0 / 0.766 GB, free: 211.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.924/3.13, allocations: 94.63 MB / 0.8584 GB, free: 117.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001425/3.13, allocations: 221 kB / 0.8586 GB, free: 117 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.525/7.655, allocations: 0 / 0.8586 GB, free: 117 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