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.001127/0.001127, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001338, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2734, allocations: 50.54 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.09263/0.366, allocations: 90.41 MB / 499.1 MB, free: 6.816 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03084/0.3969, allocations: 21.36 MB / 0.5083 GB, free: 1.402 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002511/0.3995, allocations: 87.44 kB / 0.5084 GB, free: 1.316 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002586/0.4021, allocations: 0.9317 MB / 0.5093 GB, free: 388 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009172/0.4113, allocations: 3.752 MB / 0.513 GB, free: 12.61 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01383/0.4252, allocations: 5.668 MB / 0.5185 GB, free: 6.941 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.009791/0.435, allocations: 7.065 MB / 0.5254 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003792/0.4388, allocations: 1.848 MB / 0.5272 GB, free: 13.99 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4161/0.8549, allocations: 75.02 MB / 0.6005 GB, free: 11.83 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06066/0.9156, allocations: 31.94 MB / 0.6317 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001379/0.917, allocations: 248 kB / 0.6319 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01326/0.9303, allocations: 6.121 MB / 0.6379 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.002017/0.9324, allocations: 1.09 MB / 0.6389 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.003512/0.9359, allocations: 1.502 MB / 0.6404 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0123/0.9482, allocations: 5.534 MB / 0.6458 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.9483, allocations: 4 kB / 0.6458 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.116e-06/0.9483, allocations: 0 / 0.6458 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001834/0.9485, allocations: 0 / 0.6458 GB, free: 5.91 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.01069/0.9592, allocations: 3.49 MB / 0.6492 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.9592, allocations: 11.97 kB / 0.6492 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008739/0.9601, allocations: 346.9 kB / 0.6496 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001296/0.9614, allocations: 312.5 kB / 0.6499 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003564/0.965, allocations: 1.678 MB / 0.6515 GB, free: 124 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.9652, allocations: 217.7 kB / 0.6517 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005162/0.9658, allocations: 200.1 kB / 0.6519 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005874/0.9717, allocations: 3.303 MB / 0.6551 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.893e-05/0.9717, allocations: 7.375 kB / 0.6551 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003237/0.9721, allocations: 82.94 kB / 0.6552 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002928/0.9724, allocations: 250.8 kB / 0.6554 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00588/0.9783, allocations: 3.113 MB / 0.6585 GB, free: 8.93 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.02076/0.9991, allocations: 13.81 MB / 0.672 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004199/1.003, allocations: 2.219 MB / 0.6741 GB, free: 8.211 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002203/1.006, allocations: 1.368 MB / 0.6755 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009145/1.015, allocations: 5.865 MB / 0.6812 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/1.015, allocations: 52.56 kB / 0.6813 GB, free: 460 kB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007273/1.016, allocations: 166 kB / 0.6814 GB, free: 292 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 5.54e-06/1.016, allocations: 0 / 0.6814 GB, free: 292 kB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02228/1.038, allocations: 9.161 MB / 0.6904 GB, free: 7.059 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/1.038, allocations: 77.41 kB / 0.6904 GB, free: 6.973 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002925/1.041, allocations: 1.841 MB / 0.6922 GB, free: 5.09 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002983/1.041, allocations: 61.7 kB / 0.6923 GB, free: 5.023 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007639/1.042, allocations: 1.07 MB / 0.6933 GB, free: 3.949 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006967/1.043, allocations: 0.6756 MB / 0.694 GB, free: 3.277 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00093/1.044, allocations: 456.4 kB / 0.6944 GB, free: 2.824 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.849e-05/1.044, allocations: 304.7 kB / 0.6947 GB, free: 2.527 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/1.046, allocations: 1.24 MB / 0.6959 GB, free: 1.277 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002599/1.048, allocations: 1.802 MB / 0.6977 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005033/1.053, allocations: 3.166 MB / 0.7008 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-05/1.053, allocations: 4 kB / 0.7008 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007832/1.061, allocations: 4.294 MB / 0.705 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/1.061, allocations: 12 kB / 0.705 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.242e-05/1.061, allocations: 16 kB / 0.705 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0135/1.075, allocations: 3.636 MB / 0.7086 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/1.076, allocations: 332.7 kB / 0.7089 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006761/1.083, allocations: 3.946 MB / 0.7127 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002014/1.085, allocations: 103.1 kB / 0.7128 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003362/1.085, allocations: 112 kB / 0.7129 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002868/1.088, allocations: 1.668 MB / 0.7146 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002319/1.091, allocations: 1.752 MB / 0.7163 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004271/1.095, allocations: 3.045 MB / 0.7192 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.582e-05/1.095, allocations: 8 kB / 0.7193 GB, free: 8.699 MB / 0.5762 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006782/1.102, allocations: 4.033 MB / 0.7232 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/1.102, allocations: 15.94 kB / 0.7232 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.647e-05/1.102, allocations: 16 kB / 0.7232 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009438/1.111, allocations: 2.746 MB / 0.7259 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001685/1.113, allocations: 378.6 kB / 0.7263 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005653/1.119, allocations: 3.457 MB / 0.7296 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001942/1.121, allocations: 95.94 kB / 0.7297 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003263/1.121, allocations: 116 kB / 0.7298 GB, free: 13.99 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.0006625/1.122, allocations: 325.2 kB / 0.7302 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006233/1.122, allocations: 225.3 kB / 0.7304 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007676/1.13, allocations: 3.947 MB / 0.7342 GB, free: 9.516 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.041e-05/1.13, allocations: 31.98 kB / 0.7343 GB, free: 9.484 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-05/1.13, allocations: 0 / 0.7343 GB, free: 9.484 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005807/1.136, allocations: 3.369 MB / 0.7375 GB, free: 6.039 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/1.148, allocations: 6.301 MB / 0.7437 GB, free: 15.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/1.148, allocations: 7.188 kB / 0.7437 GB, free: 15.71 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/1.149, allocations: 315.7 kB / 0.744 GB, free: 15.41 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003892/1.153, allocations: 1.159 MB / 0.7451 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002845/1.153, allocations: 71.95 kB / 0.7452 GB, free: 14.16 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00935/1.163, allocations: 11.06 MB / 0.756 GB, free: 2.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.163, allocations: 96 / 0.756 GB, free: 2.387 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2293/1.392, allocations: 5.183 MB / 0.7611 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002387/1.394, allocations: 0.599 MB / 0.7616 GB, free: 282.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001137/1.395, allocations: 54.12 kB / 0.7617 GB, free: 282.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002853/1.398, allocations: 73 kB / 0.7618 GB, free: 282.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008758/1.399, allocations: 167.6 kB / 0.7619 GB, free: 282.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004994/1.4, allocations: 82 kB / 0.762 GB, free: 282.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.003094/1.403, allocations: 1.257 MB / 0.7632 GB, free: 282 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2e-07/1.403, allocations: 1.594 kB / 0.7632 GB, free: 282 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00634/1.409, allocations: 1.738 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.01148/1.421, allocations: 6.647 MB / 0.7714 GB, free: 279.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01053/1.431, allocations: 5.124 MB / 0.7764 GB, free: 277.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/1.431, allocations: 0 / 0.7764 GB, free: 277.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.004133/1.436, allocations: 2.251 MB / 0.7786 GB, free: 275.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005658/1.441, allocations: 1.056 MB / 0.7797 GB, free: 275.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03916/1.48, allocations: 24.17 MB / 0.8033 GB, free: 250.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002114/1.483, allocations: 1.878 MB / 0.8051 GB, free: 248.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002885/1.485, allocations: 0.9525 MB / 0.806 GB, free: 248 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001412/1.487, allocations: 1.011 MB / 0.807 GB, free: 247 MB / 0.6075 GB Notification: Performance of SimCode: time 1.393e-06/1.487, allocations: 4 kB / 0.807 GB, free: 247 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.481/3.968, allocations: 100.8 MB / 0.9055 GB, free: 146.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.36/21.33, allocations: 6.609 kB / 0.9055 GB, free: 146.4 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