Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 91.92 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.311/2.311, allocations: 390.4 MB / 0.6655 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.0003739, allocations: 8 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6293/0.6297, allocations: 142.3 MB / 0.9538 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05603/0.6858, allocations: 61.75 MB / 1.014 GB, free: 2.219 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02288/0.7087, allocations: 15.71 MB / 1.029 GB, free: 2.473 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002935/0.7117, allocations: 83.5 kB / 1.03 GB, free: 2.391 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002871/0.7146, allocations: 0.792 MB / 1.03 GB, free: 1.594 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00633/0.7209, allocations: 2.121 MB / 1.032 GB, free: 15.46 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.005389/0.7263, allocations: 1.781 MB / 1.034 GB, free: 13.7 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00853/0.7349, allocations: 5.974 MB / 1.04 GB, free: 7.711 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002646/0.7376, allocations: 1.356 MB / 1.041 GB, free: 6.332 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003735/0.7413, allocations: 1.668 MB / 1.043 GB, free: 4.656 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002341/0.7437, allocations: 1.38 MB / 1.044 GB, free: 3.27 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0003591/0.744, allocations: 72 kB / 1.044 GB, free: 3.199 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003537/0.7476, allocations: 1.454 MB / 1.046 GB, free: 1.742 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0005372/0.7481, allocations: 430.1 kB / 1.046 GB, free: 1.32 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0007268/0.7489, allocations: 440.6 kB / 1.047 GB, free: 0.8828 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003405/0.7523, allocations: 2.65 MB / 1.049 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.7523, allocations: 0 / 1.049 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7524, allocations: 4 kB / 1.049 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.299e-05/0.7524, allocations: 0 / 1.049 GB, free: 14.22 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.004095/0.7565, allocations: 2.318 MB / 1.051 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.7565, allocations: 11.97 kB / 1.051 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002592/0.7568, allocations: 185.7 kB / 1.052 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001892/0.7587, allocations: 480.9 kB / 1.052 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003616/0.7623, allocations: 1.797 MB / 1.054 GB, free: 9.309 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003474/0.7627, allocations: 166.4 kB / 1.054 GB, free: 9.145 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001927/0.7629, allocations: 135.9 kB / 1.054 GB, free: 9.012 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002705/0.7656, allocations: 1.481 MB / 1.056 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.7657, allocations: 0 / 1.056 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.7658, allocations: 52 kB / 1.056 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.417e-05/0.7659, allocations: 58.23 kB / 1.056 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002794/0.7687, allocations: 1.235 MB / 1.057 GB, free: 6.094 MB / 0.8106 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.008658/0.7773, allocations: 7.46 MB / 1.064 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002248/0.7796, allocations: 1.402 MB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.7807, allocations: 499.7 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00401/0.7847, allocations: 2.683 MB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.7858, allocations: 0.5454 MB / 1.069 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004351/0.7863, allocations: 87.3 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=64): time 2.324e-06/0.7863, allocations: 0 / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64): time 0.003221/0.7895, allocations: 1.374 MB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.7896, allocations: 115.4 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/0.7915, allocations: 1.485 MB / 1.072 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.261e-05/0.7916, allocations: 45.69 kB / 1.072 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007379/0.7923, allocations: 0.8918 MB / 1.073 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002277/0.7926, allocations: 224.8 kB / 1.073 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.388e-05/0.7926, allocations: 20 kB / 1.073 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.7928, allocations: 341.9 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009955/0.7938, allocations: 401.8 kB / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.7949, allocations: 0.7585 MB / 1.075 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.796, allocations: 0.5045 MB / 1.075 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.796, allocations: 4 kB / 1.075 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002872/0.7989, allocations: 1.344 MB / 1.077 GB, free: 0.7344 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003159/0.7992, allocations: 404.9 kB / 1.077 GB, free: 204 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/0.7993, allocations: 8 kB / 1.077 GB, free: 196 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.128e-05/0.7993, allocations: 19.94 kB / 1.077 GB, free: 176 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.8004, allocations: 271.6 kB / 1.077 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.524e-05/0.8004, allocations: 19.94 kB / 1.077 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/0.8019, allocations: 156.4 kB / 1.077 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.802, allocations: 55.92 kB / 1.077 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.802, allocations: 5.875 kB / 1.077 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002508/0.8046, allocations: 1.173 MB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.8046, allocations: 12 kB / 1.079 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.8046, allocations: 19.95 kB / 1.079 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.8057, allocations: 271.9 kB / 1.079 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.262e-05/0.8057, allocations: 19.94 kB / 1.079 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/0.8072, allocations: 152.3 kB / 1.079 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.8073, allocations: 51.98 kB / 1.079 GB, free: 13.98 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 119 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001061/0.8084, allocations: 492.7 kB / 1.08 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003716/0.8088, allocations: 165.9 kB / 1.08 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002822/0.8116, allocations: 1.174 MB / 1.081 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/0.8117, allocations: 15.98 kB / 1.081 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/0.8117, allocations: 4 kB / 1.081 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002014/0.8137, allocations: 0.8784 MB / 1.082 GB, free: 11.22 MB / 0.8419 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 postOpt removeSimpleEquations (simulation): time 0.005541/0.8193, allocations: 2.834 MB / 1.085 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.8193, allocations: 8.016 kB / 1.085 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007896/0.8201, allocations: 171.8 kB / 1.085 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001909/0.8203, allocations: 36.77 kB / 1.085 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.291e-05/0.8204, allocations: 27.98 kB / 1.085 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/0.8215, allocations: 1.374 MB / 1.086 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.8215, allocations: 4 kB / 1.086 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003585/0.8251, allocations: 1.736 MB / 1.088 GB, free: 4.773 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008925/0.826, allocations: 370.6 kB / 1.088 GB, free: 4.391 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004291/0.8264, allocations: 16 kB / 1.088 GB, free: 4.375 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.8278, allocations: 143.7 kB / 1.088 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.8279, allocations: 60.44 kB / 1.088 GB, free: 4.172 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.8281, allocations: 40.09 kB / 1.088 GB, free: 4.133 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001791/0.8299, allocations: 1.082 MB / 1.089 GB, free: 3.027 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8299, allocations: 0 / 1.089 GB, free: 3.027 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002602/0.8325, allocations: 0.9589 MB / 1.09 GB, free: 2.066 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004608/0.8371, allocations: 2.669 MB / 1.093 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.003575/0.8407, allocations: 1.702 MB / 1.095 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.8407, allocations: 4 kB / 1.095 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.842, allocations: 0.6154 MB / 1.095 GB, free: 13 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00362/0.8456, allocations: 0.8507 MB / 1.096 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02029/0.8659, allocations: 11.07 MB / 1.107 GB, free: 304 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/0.867, allocations: 1.397 MB / 1.108 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.002038/0.8691, allocations: 438.6 kB / 1.109 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/0.8703, allocations: 0.7453 MB / 1.109 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of SimCode: time 1.213e-06/0.8703, allocations: 0 / 1.109 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07884/0.9491, allocations: 49.51 MB / 1.158 GB, free: 12.83 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/0.9494, allocations: 254.2 kB / 1.158 GB, free: 12.5 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.105/4.054, allocations: 0 / 1.158 GB, free: 12.5 MB / 0.92 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat does not exist to compare? outputFormat=mat