Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 108.4 kB / 16.37 MB, free: 6.477 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.001029/0.001029, allocations: 195.8 kB / 17.31 MB, free: 5.82 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002149/0.002149, allocations: 284.8 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9556/0.9556, allocations: 169.3 MB / 0.4989 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 92.23 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.163, allocations: 86.98 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.2712/0.4343, allocations: 17.45 MB / 0.6986 GB, free: 9.258 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006272/0.4406, allocations: 4.903 MB / 0.7034 GB, free: 5.816 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000625/0.4412, allocations: 13.09 kB / 0.7034 GB, free: 5.812 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008733/0.4422, allocations: 256 kB / 0.7037 GB, free: 5.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001419/0.4436, allocations: 0.6086 MB / 0.7043 GB, free: 5.312 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001914/0.4455, allocations: 0.7366 MB / 0.705 GB, free: 4.953 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00114/0.4467, allocations: 0.9645 MB / 0.7059 GB, free: 4.516 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004936/0.4472, allocations: 339.8 kB / 0.7063 GB, free: 4.375 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007447/0.4479, allocations: 427.8 kB / 0.7067 GB, free: 4.18 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004226/0.4484, allocations: 302.5 kB / 0.707 GB, free: 4.051 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.937e-05/0.4484, allocations: 33.56 kB / 0.707 GB, free: 4.047 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001455/0.4499, allocations: 0.7205 MB / 0.7077 GB, free: 3.812 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.4501, allocations: 144.8 kB / 0.7078 GB, free: 3.738 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002309/0.4503, allocations: 242.5 kB / 0.7081 GB, free: 3.594 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001214/0.4515, allocations: 0.8803 MB / 0.7089 GB, free: 3.273 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.4515, allocations: 0 / 0.7089 GB, free: 3.273 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.4515, allocations: 0.9375 kB / 0.7089 GB, free: 3.273 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.4515, allocations: 0 / 0.7089 GB, free: 3.273 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001139/0.4527, allocations: 0.8789 MB / 0.7098 GB, free: 2.59 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.4527, allocations: 13.88 kB / 0.7098 GB, free: 2.586 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001695/0.4529, allocations: 59.22 kB / 0.7099 GB, free: 2.559 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006697/0.4536, allocations: 456.4 kB / 0.7103 GB, free: 2.234 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.4536, allocations: 29.28 kB / 0.7103 GB, free: 2.219 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.4537, allocations: 27.72 kB / 0.7103 GB, free: 2.211 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004813/0.4542, allocations: 286.9 kB / 0.7106 GB, free: 2.062 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.4542, allocations: 0 / 0.7106 GB, free: 2.062 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.4542, allocations: 11.03 kB / 0.7106 GB, free: 2.055 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-06/0.4542, allocations: 10.19 kB / 0.7106 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004168/0.4547, allocations: 189.9 kB / 0.7108 GB, free: 1.992 MB / 494.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.001691/0.4564, allocations: 1.481 MB / 0.7123 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.4567, allocations: 165.5 kB / 0.7124 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001765/0.4569, allocations: 80.84 kB / 0.7125 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001448/0.4583, allocations: 1.274 MB / 0.7138 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.4584, allocations: 33.78 kB / 0.7138 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.4584, allocations: 0 / 0.7138 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006565/0.459, allocations: 248.7 kB / 0.714 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.4591, allocations: 58.3 kB / 0.7141 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007426/0.4598, allocations: 0.5835 MB / 0.7146 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.4599, allocations: 31.52 kB / 0.7147 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.4601, allocations: 277.3 kB / 0.7149 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.157e-05/0.4601, allocations: 51.31 kB / 0.715 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.4603, allocations: 70 kB / 0.7151 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.4604, allocations: 358.1 kB / 0.7154 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.4606, allocations: 86.41 kB / 0.7155 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002878/0.4609, allocations: 206.8 kB / 0.7157 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004027/0.4613, allocations: 237.7 kB / 0.7159 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.4613, allocations: 1.031 kB / 0.7159 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006359/0.462, allocations: 312.2 kB / 0.7162 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.462, allocations: 9.781 kB / 0.7162 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.462, allocations: 3.734 kB / 0.7162 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.4621, allocations: 7.5 kB / 0.7162 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/0.4623, allocations: 59.95 kB / 0.7163 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.4624, allocations: 8.984 kB / 0.7163 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000333/0.4627, allocations: 40.86 kB / 0.7163 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.989e-05/0.4627, allocations: 16.83 kB / 0.7163 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003289/0.4631, allocations: 218.5 kB / 0.7166 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000292/0.4634, allocations: 204.4 kB / 0.7167 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003933/0.4638, allocations: 239 kB / 0.717 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.766e-06/0.4638, allocations: 1.125 kB / 0.717 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006074/0.4644, allocations: 308.4 kB / 0.7173 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.4644, allocations: 10.78 kB / 0.7173 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.4644, allocations: 3.312 kB / 0.7173 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.364e-06/0.4644, allocations: 7.719 kB / 0.7173 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/0.4647, allocations: 63.8 kB / 0.7174 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.4647, allocations: 5.719 kB / 0.7174 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.4651, allocations: 34.47 kB / 0.7174 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/0.4651, allocations: 15.92 kB / 0.7174 GB, free: 13.28 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * 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.0001292/0.4652, allocations: 203.8 kB / 0.7176 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.986e-05/0.4653, allocations: 50.09 kB / 0.7176 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005894/0.4659, allocations: 260.2 kB / 0.7179 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.497e-06/0.4659, allocations: 2.797 kB / 0.7179 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.466, allocations: 0 / 0.7179 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.466, allocations: 1.547 kB / 0.7179 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.467, allocations: 0.7425 MB / 0.7186 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.4671, allocations: 1.375 kB / 0.7186 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.4672, allocations: 28.86 kB / 0.7187 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.4672, allocations: 1.375 kB / 0.7187 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.4672, allocations: 10.08 kB / 0.7187 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.4672, allocations: 6.016 kB / 0.7187 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4672, allocations: 1.375 kB / 0.7187 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004558/0.4677, allocations: 358.5 kB / 0.719 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001613/0.4679, allocations: 140.1 kB / 0.7191 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.811e-05/0.4679, allocations: 8.516 kB / 0.7192 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.4681, allocations: 7.656 kB / 0.7192 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.396e-05/0.4682, allocations: 20.11 kB / 0.7192 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.4682, allocations: 10.06 kB / 0.7192 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004847/0.4687, allocations: 421.2 kB / 0.7196 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4687, allocations: 4 kB / 0.7196 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007935/0.4695, allocations: 231.4 kB / 0.7198 GB, free: 11.81 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00108/0.4706, allocations: 0.489 MB / 0.7203 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007042/0.4713, allocations: 329.1 kB / 0.7206 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4713, allocations: 3.938 kB / 0.7206 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001902/0.4715, allocations: 90.25 kB / 0.7207 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.4727, allocations: 244.8 kB / 0.7209 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.4739, allocations: 0.8033 MB / 0.7217 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.4743, allocations: 0.8537 MB / 0.7225 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003458/0.4747, allocations: 97.8 kB / 0.7226 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.177e-05/0.4748, allocations: 38.31 kB / 0.7227 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.4748, allocations: 0 / 0.7227 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of Templates: time 0.01717/0.4919, allocations: 10.2 MB / 0.7326 GB, free: 6 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)