Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.0009516/0.0009519, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.008115/0.008115, allocations: 174.1 kB / 16.26 MB, free: 6.273 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.368/1.368, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9687/0.9687, allocations: 135.3 MB / 426.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003913/0.0003918, allocations: 12.28 kB / 0.5076 GB, free: 4.758 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1853, allocations: 82.29 MB / 0.588 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.35/0.5353, allocations: 65.31 MB / 0.6517 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0196/0.555, allocations: 16.64 MB / 0.668 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004003/0.559, allocations: 90.78 kB / 0.6681 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003439/0.5625, allocations: 0.9763 MB / 0.669 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.007691/0.5702, allocations: 2.447 MB / 0.6714 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.006458/0.5767, allocations: 2.098 MB / 0.6735 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01201/0.5887, allocations: 6.976 MB / 0.6803 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003819/0.5925, allocations: 1.573 MB / 0.6818 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005276/0.5978, allocations: 1.735 MB / 0.6835 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003761/0.6016, allocations: 1.436 MB / 0.6849 GB, free: 9.777 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0008407/0.6025, allocations: 72.59 kB / 0.685 GB, free: 9.777 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005601/0.6081, allocations: 1.823 MB / 0.6868 GB, free: 9.168 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.6093, allocations: 437.7 kB / 0.6872 GB, free: 8.973 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.003462/0.6128, allocations: 1.015 MB / 0.6882 GB, free: 8.355 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.008677/0.6215, allocations: 3.468 MB / 0.6916 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.6215, allocations: 0 / 0.6916 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.923e-06/0.6215, allocations: 1.031 kB / 0.6916 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001352/0.6217, allocations: 4 kB / 0.6916 GB, free: 7.289 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.007261/0.6289, allocations: 2.287 MB / 0.6938 GB, free: 5.809 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.629, allocations: 8.469 kB / 0.6938 GB, free: 5.809 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002097/0.6311, allocations: 394.7 kB / 0.6942 GB, free: 5.676 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005156/0.6363, allocations: 1.813 MB / 0.6959 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004884/0.6368, allocations: 164.5 kB / 0.6961 GB, free: 4.609 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004728/0.6373, allocations: 136.2 kB / 0.6962 GB, free: 4.562 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003891/0.6412, allocations: 1.447 MB / 0.6976 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.261e-05/0.6412, allocations: 4.906 kB / 0.6977 GB, free: 3.875 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001797/0.6414, allocations: 52.41 kB / 0.6977 GB, free: 3.836 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.56e-05/0.6415, allocations: 46.45 kB / 0.6977 GB, free: 3.832 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002923/0.6444, allocations: 1.138 MB / 0.6989 GB, free: 3.441 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.01082/0.6553, allocations: 7.393 MB / 0.7061 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002225/0.6575, allocations: 1.34 MB / 0.7074 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.6585, allocations: 472.2 kB / 0.7078 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00512/0.6637, allocations: 2.642 MB / 0.7104 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/0.6648, allocations: 0.5013 MB / 0.7109 GB, free: 9.262 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007156/0.6656, allocations: 93.72 kB / 0.711 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=64): time 2.405e-06/0.6656, allocations: 0 / 0.711 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of matching and sorting (n=64): time 0.003143/0.6687, allocations: 1.265 MB / 0.7122 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.6688, allocations: 113.8 kB / 0.7123 GB, free: 8.398 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002119/0.6709, allocations: 1.45 MB / 0.7138 GB, free: 7.621 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.724e-05/0.671, allocations: 44.55 kB / 0.7138 GB, free: 7.578 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000867/0.6719, allocations: 0.8899 MB / 0.7147 GB, free: 6.793 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002567/0.6722, allocations: 225.4 kB / 0.7149 GB, free: 6.598 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.6723, allocations: 95.59 kB / 0.715 GB, free: 6.531 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.6725, allocations: 350 kB / 0.7153 GB, free: 6.191 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000941/0.6734, allocations: 386 kB / 0.7157 GB, free: 6.02 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.6746, allocations: 0.7372 MB / 0.7164 GB, free: 5.375 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002039/0.6766, allocations: 1.134 MB / 0.7175 GB, free: 4.547 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.6766, allocations: 5.031 kB / 0.7175 GB, free: 4.543 MB / 0.5294 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002676/0.6793, allocations: 1.31 MB / 0.7188 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002784/0.6796, allocations: 412.9 kB / 0.7192 GB, free: 3.355 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.6796, allocations: 8.344 kB / 0.7192 GB, free: 3.355 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.516e-05/0.6797, allocations: 16.69 kB / 0.7192 GB, free: 3.355 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009394/0.6806, allocations: 259.3 kB / 0.7195 GB, free: 3.289 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.015e-05/0.6806, allocations: 21.14 kB / 0.7195 GB, free: 3.285 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/0.6822, allocations: 134.9 kB / 0.7196 GB, free: 3.223 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-05/0.6823, allocations: 52.77 kB / 0.7196 GB, free: 3.211 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.336e-06/0.6823, allocations: 3.344 kB / 0.7197 GB, free: 3.211 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002223/0.6845, allocations: 1.115 MB / 0.7207 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.6846, allocations: 7.438 kB / 0.7207 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.6846, allocations: 20.72 kB / 0.7208 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008999/0.6855, allocations: 253.5 kB / 0.721 GB, free: 2.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.887e-05/0.6855, allocations: 23.86 kB / 0.721 GB, free: 2.477 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.6869, allocations: 137.9 kB / 0.7212 GB, free: 2.348 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.058e-05/0.687, allocations: 51.98 kB / 0.7212 GB, free: 2.297 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (122): * Single equations (assignments): 120 * 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.001106/0.6881, allocations: 0.492 MB / 0.7217 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002561/0.6884, allocations: 161.9 kB / 0.7218 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002489/0.6909, allocations: 1.098 MB / 0.7229 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.733e-05/0.6909, allocations: 11.98 kB / 0.7229 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.6909, allocations: 4 kB / 0.7229 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001788/0.6927, allocations: 0.8199 MB / 0.7237 GB, free: 15.67 MB / 0.545 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.005202/0.6979, allocations: 2.706 MB / 0.7264 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.698, allocations: 3.938 kB / 0.7264 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007465/0.6987, allocations: 168 kB / 0.7265 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001753/0.6989, allocations: 24.84 kB / 0.7266 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/0.699, allocations: 27.98 kB / 0.7266 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001119/0.7001, allocations: 1.315 MB / 0.7279 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.7001, allocations: 0 / 0.7279 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003152/0.7033, allocations: 1.634 MB / 0.7295 GB, free: 9.535 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008207/0.7041, allocations: 358.6 kB / 0.7298 GB, free: 9.164 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002939/0.7044, allocations: 23.98 kB / 0.7298 GB, free: 9.141 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.7055, allocations: 123.5 kB / 0.73 GB, free: 9.023 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.7056, allocations: 60.42 kB / 0.73 GB, free: 8.965 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-05/0.7057, allocations: 39.97 kB / 0.7301 GB, free: 8.926 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001606/0.7073, allocations: 1.046 MB / 0.7311 GB, free: 7.855 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7073, allocations: 0 / 0.7311 GB, free: 7.855 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003235/0.7106, allocations: 0.9509 MB / 0.732 GB, free: 6.902 MB / 0.545 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 (76): * Single equations (assignments): 68 * 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.001401/0.712, allocations: 0.5089 MB / 0.7325 GB, free: 6.398 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003662/0.7156, allocations: 1.635 MB / 0.7341 GB, free: 4.742 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.7157, allocations: 0 / 0.7341 GB, free: 4.742 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.7169, allocations: 0.5717 MB / 0.7347 GB, free: 4.164 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004509/0.7214, allocations: 0.8465 MB / 0.7355 GB, free: 3.324 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006002/0.7274, allocations: 3.909 MB / 0.7393 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.7285, allocations: 1.401 MB / 0.7407 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001948/0.7304, allocations: 430.5 kB / 0.7411 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003611/0.7308, allocations: 135.4 kB / 0.7412 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of SimCode: time 8.81e-07/0.7308, allocations: 0 / 0.7412 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of Templates: time 0.05921/0.79, allocations: 32.63 MB / 0.7731 GB, free: 13.14 MB / 0.5919 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)