Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 104.6 kB / 16.27 MB, free: 5.977 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.001433/0.001433, allocations: 189.9 kB / 17.2 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8258/0.8258, allocations: 132.2 MB / 423.2 MB, free: 6.648 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 67.88 kB / 0.5024 GB, free: 11.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.412/0.4137, allocations: 80.2 MB / 0.5807 GB, free: 27.33 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06265/0.4764, allocations: 66.98 MB / 0.6461 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0274/0.5039, allocations: 16.75 MB / 0.6625 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004724/0.5086, allocations: 95.44 kB / 0.6626 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.005256/0.5139, allocations: 1.165 MB / 0.6637 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01118/0.5253, allocations: 2.657 MB / 0.6663 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.007277/0.5326, allocations: 2.328 MB / 0.6686 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.008458/0.541, allocations: 5.343 MB / 0.6738 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003426/0.5445, allocations: 1.907 MB / 0.6757 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005703/0.5502, allocations: 2.091 MB / 0.6777 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002961/0.5532, allocations: 1.489 MB / 0.6792 GB, free: 9.191 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0005777/0.5538, allocations: 188 kB / 0.6794 GB, free: 9.008 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004763/0.5586, allocations: 1.961 MB / 0.6813 GB, free: 7.043 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0009287/0.5596, allocations: 0.5567 MB / 0.6818 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.00196/0.5615, allocations: 1.135 MB / 0.6829 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.006826/0.5684, allocations: 3.595 MB / 0.6864 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.5684, allocations: 4 kB / 0.6864 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.225e-06/0.5684, allocations: 0 / 0.6864 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.566e-05/0.5685, allocations: 0 / 0.6864 GB, free: 1.734 MB / 0.5137 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.005647/0.5742, allocations: 2.683 MB / 0.6891 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.5742, allocations: 8.031 kB / 0.6891 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/0.5759, allocations: 373.8 kB / 0.6894 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004043/0.5799, allocations: 1.737 MB / 0.6911 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004136/0.5804, allocations: 150.4 kB / 0.6913 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002972/0.5807, allocations: 139.9 kB / 0.6914 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002975/0.5837, allocations: 1.432 MB / 0.6928 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.506e-05/0.5837, allocations: 0 / 0.6928 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.5839, allocations: 51.98 kB / 0.6928 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-05/0.5839, allocations: 50.31 kB / 0.6929 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002639/0.5866, allocations: 1.106 MB / 0.694 GB, free: 9.793 MB / 0.5294 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.01038/0.597, allocations: 7.417 MB / 0.7012 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002306/0.5993, allocations: 1.306 MB / 0.7025 GB, free: 400 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.6004, allocations: 446.6 kB / 0.7029 GB, free: 15.95 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005106/0.6055, allocations: 2.643 MB / 0.7055 GB, free: 13.08 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001158/0.6067, allocations: 486.5 kB / 0.706 GB, free: 12.59 MB / 0.545 GB Notification: Performance of pre-optimization done (n=63): time 2.815e-06/0.6067, allocations: 0 / 0.706 GB, free: 12.59 MB / 0.545 GB Notification: Performance of matching and sorting (n=63): time 0.003306/0.6101, allocations: 1.217 MB / 0.7071 GB, free: 11.34 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.097e-05/0.6101, allocations: 115.3 kB / 0.7073 GB, free: 11.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002144/0.6123, allocations: 1.488 MB / 0.7087 GB, free: 9.715 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001014/0.6124, allocations: 41.7 kB / 0.7088 GB, free: 9.668 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008293/0.6132, allocations: 0.8996 MB / 0.7096 GB, free: 8.758 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002369/0.6135, allocations: 220.8 kB / 0.7098 GB, free: 8.539 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003222/0.6138, allocations: 206.3 kB / 0.71 GB, free: 8.328 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.614, allocations: 349.8 kB / 0.7104 GB, free: 7.98 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009309/0.6149, allocations: 388.6 kB / 0.7107 GB, free: 7.598 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.6161, allocations: 0.7281 MB / 0.7115 GB, free: 6.707 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002138/0.6183, allocations: 1.094 MB / 0.7125 GB, free: 5.469 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.6183, allocations: 4 kB / 0.7125 GB, free: 5.465 MB / 0.545 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.003019/0.6213, allocations: 1.274 MB / 0.7138 GB, free: 4.176 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.761e-05/0.6214, allocations: 41.69 kB / 0.7138 GB, free: 4.129 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.6214, allocations: 12 kB / 0.7138 GB, free: 4.117 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.474e-05/0.6214, allocations: 16 kB / 0.7138 GB, free: 4.102 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009798/0.6224, allocations: 247.7 kB / 0.7141 GB, free: 3.859 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.677e-05/0.6225, allocations: 23.92 kB / 0.7141 GB, free: 3.836 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.6238, allocations: 129.6 kB / 0.7142 GB, free: 3.711 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.6239, allocations: 55.98 kB / 0.7143 GB, free: 3.656 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00157/0.6255, allocations: 0.6821 MB / 0.7149 GB, free: 2.973 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001183/0.6267, allocations: 0.7242 MB / 0.7156 GB, free: 2.09 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001991/0.6287, allocations: 1.055 MB / 0.7167 GB, free: 0.8906 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.124e-05/0.6287, allocations: 11.94 kB / 0.7167 GB, free: 0.8789 MB / 0.545 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.003001/0.6317, allocations: 1.247 MB / 0.7179 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/0.6318, allocations: 37.7 kB / 0.7179 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.6318, allocations: 8 kB / 0.7179 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.6318, allocations: 16 kB / 0.718 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000968/0.6328, allocations: 248 kB / 0.7182 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.923e-05/0.6328, allocations: 27.91 kB / 0.7182 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/0.6342, allocations: 123.8 kB / 0.7183 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.6343, allocations: 51.98 kB / 0.7184 GB, free: 15.11 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 118 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000357/0.6347, allocations: 247.8 kB / 0.7186 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005168/0.6352, allocations: 165.9 kB / 0.7188 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002879/0.6381, allocations: 1.065 MB / 0.7198 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/0.6381, allocations: 8 kB / 0.7198 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.6382, allocations: 7.938 kB / 0.7198 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001906/0.6401, allocations: 0.7808 MB / 0.7206 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005884/0.646, allocations: 2.703 MB / 0.7232 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.646, allocations: 4 kB / 0.7232 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008052/0.6468, allocations: 156.1 kB / 0.7234 GB, free: 9.855 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.647, allocations: 32.83 kB / 0.7234 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.031e-05/0.6471, allocations: 23.98 kB / 0.7235 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/0.6484, allocations: 1.431 MB / 0.7248 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.6484, allocations: 4 kB / 0.7249 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003687/0.6521, allocations: 1.576 MB / 0.7264 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009363/0.653, allocations: 358.5 kB / 0.7267 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004517/0.6535, allocations: 16 kB / 0.7267 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.6547, allocations: 59.94 kB / 0.7268 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.6549, allocations: 60.42 kB / 0.7269 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.635e-05/0.655, allocations: 35.97 kB / 0.7269 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002153/0.6572, allocations: 1.07 MB / 0.7279 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6572, allocations: 3.938 kB / 0.7279 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003635/0.6608, allocations: 0.9353 MB / 0.7289 GB, free: 4.031 MB / 0.5606 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 (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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001663/0.6625, allocations: 0.5434 MB / 0.7294 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.004495/0.667, allocations: 1.648 MB / 0.731 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/0.6671, allocations: 0 / 0.731 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.6684, allocations: 0.5417 MB / 0.7315 GB, free: 1.27 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00522/0.6737, allocations: 0.9032 MB / 0.7324 GB, free: 424 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007051/0.6807, allocations: 3.24 MB / 0.7356 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.6823, allocations: 1.384 MB / 0.7369 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006229/0.6829, allocations: 147.4 kB / 0.7371 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of SimCode: time 1.393e-06/0.6829, allocations: 4 kB / 0.7371 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of Templates: time 0.3538/1.037, allocations: 35.14 MB / 0.7714 GB, free: 143.8 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)