Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 188 kB / 16.62 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.739/1.739, allocations: 292.3 MB / 0.549 GB, free: 12.8 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001691, allocations: 74.92 kB / 0.6723 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2607, allocations: 114.5 MB / 0.7841 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01807/0.2788, allocations: 15.7 MB / 0.7995 GB, free: 12.99 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01176/0.2906, allocations: 7.054 MB / 0.8063 GB, free: 5.918 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006738/0.2914, allocations: 19.81 kB / 0.8064 GB, free: 5.898 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001102/0.2925, allocations: 262.4 kB / 0.8066 GB, free: 5.641 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.002012/0.2946, allocations: 0.6056 MB / 0.8072 GB, free: 5.035 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.001976/0.2966, allocations: 0.6905 MB / 0.8079 GB, free: 4.352 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.001371/0.2979, allocations: 1.029 MB / 0.8089 GB, free: 3.32 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004913/0.2984, allocations: 331.8 kB / 0.8092 GB, free: 2.992 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007745/0.2992, allocations: 410.4 kB / 0.8096 GB, free: 2.59 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005223/0.2998, allocations: 318.6 kB / 0.8099 GB, free: 2.277 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 5.916e-05/0.2998, allocations: 28 kB / 0.8099 GB, free: 2.25 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001548/0.3014, allocations: 0.6199 MB / 0.8105 GB, free: 1.629 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.3015, allocations: 95.61 kB / 0.8106 GB, free: 1.535 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0002946/0.3018, allocations: 230.7 kB / 0.8108 GB, free: 1.309 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.001512/0.3034, allocations: 0.7555 MB / 0.8116 GB, free: 0.5508 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/0.3034, allocations: 0 / 0.8116 GB, free: 0.5508 MB / 0.6231 GB Notification: Performance of FrontEnd: time 3.166e-06/0.3034, allocations: 0 / 0.8116 GB, free: 0.5508 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.055e-05/0.3034, allocations: 0 / 0.8116 GB, free: 0.5508 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001768/0.3052, allocations: 0.829 MB / 0.8124 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 6.875e-05/0.3053, allocations: 16.03 kB / 0.8124 GB, free: 15.66 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.3055, allocations: 52.28 kB / 0.8124 GB, free: 15.61 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008765/0.3064, allocations: 429 kB / 0.8129 GB, free: 15.14 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.3064, allocations: 20.44 kB / 0.8129 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.754e-05/0.3065, allocations: 28 kB / 0.8129 GB, free: 15.1 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004927/0.307, allocations: 215.2 kB / 0.8131 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.307, allocations: 3.938 kB / 0.8131 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.307, allocations: 4 kB / 0.8131 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.3071, allocations: 8 kB / 0.8131 GB, free: 14.87 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003833/0.3074, allocations: 161.6 kB / 0.8133 GB, free: 14.71 MB / 0.6387 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.001811/0.3093, allocations: 0.9457 MB / 0.8142 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.3096, allocations: 134.6 kB / 0.8143 GB, free: 13.54 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.3097, allocations: 72.8 kB / 0.8144 GB, free: 13.47 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003151/0.31, allocations: 336.3 kB / 0.8147 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.3101, allocations: 42.56 kB / 0.8148 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=14): time 1.392e-06/0.3101, allocations: 0 / 0.8148 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of matching and sorting (n=14): time 0.0006114/0.3107, allocations: 237 kB / 0.815 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.3108, allocations: 51.41 kB / 0.815 GB, free: 12.71 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004839/0.3113, allocations: 470 kB / 0.8155 GB, free: 12.25 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.3113, allocations: 25.7 kB / 0.8155 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.3115, allocations: 240.5 kB / 0.8157 GB, free: 11.98 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.3115, allocations: 47.3 kB / 0.8158 GB, free: 11.93 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.3117, allocations: 61.55 kB / 0.8158 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3118, allocations: 358.7 kB / 0.8162 GB, free: 11.5 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.312, allocations: 72.75 kB / 0.8163 GB, free: 11.43 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002471/0.3123, allocations: 154.7 kB / 0.8164 GB, free: 11.25 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.3126, allocations: 165.1 kB / 0.8166 GB, free: 11.09 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3126, allocations: 0 / 0.8166 GB, free: 11.09 MB / 0.6387 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000481/0.3131, allocations: 257 kB / 0.8168 GB, free: 10.83 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.3131, allocations: 4 kB / 0.8168 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3131, allocations: 0 / 0.8168 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.3132, allocations: 4 kB / 0.8168 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002281/0.3134, allocations: 47.91 kB / 0.8169 GB, free: 10.77 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.3134, allocations: 3.938 kB / 0.8169 GB, free: 10.77 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002863/0.3137, allocations: 35.73 kB / 0.8169 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.3137, allocations: 11.98 kB / 0.8169 GB, free: 10.72 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002884/0.314, allocations: 196 kB / 0.8171 GB, free: 10.53 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002255/0.3143, allocations: 153.4 kB / 0.8172 GB, free: 10.34 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003471/0.3146, allocations: 171.3 kB / 0.8174 GB, free: 10.16 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.203e-06/0.3146, allocations: 0 / 0.8174 GB, free: 10.16 MB / 0.6387 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005163/0.3152, allocations: 253.2 kB / 0.8176 GB, free: 9.91 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 8.116e-06/0.3152, allocations: 6.969 kB / 0.8177 GB, free: 9.906 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.054e-06/0.3152, allocations: 64 / 0.8177 GB, free: 9.906 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.611e-06/0.3152, allocations: 11.98 kB / 0.8177 GB, free: 9.895 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.3154, allocations: 51.91 kB / 0.8177 GB, free: 9.844 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.046e-06/0.3154, allocations: 0 / 0.8177 GB, free: 9.844 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003035/0.3157, allocations: 35.81 kB / 0.8177 GB, free: 9.809 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/0.3158, allocations: 11.98 kB / 0.8178 GB, free: 9.797 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (24): * Single equations (assignments): 24 * 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.0002218/0.316, allocations: 192.2 kB / 0.8179 GB, free: 9.602 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.926e-05/0.3161, allocations: 51.56 kB / 0.818 GB, free: 9.551 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005223/0.3166, allocations: 241.1 kB / 0.8182 GB, free: 9.305 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.3166, allocations: 15.92 kB / 0.8182 GB, free: 9.289 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3166, allocations: 0 / 0.8182 GB, free: 9.289 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3166, allocations: 0 / 0.8182 GB, free: 9.289 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009339/0.3176, allocations: 0.6967 MB / 0.8189 GB, free: 8.523 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.3176, allocations: 0 / 0.8189 GB, free: 8.523 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.3177, allocations: 35.86 kB / 0.819 GB, free: 8.488 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3177, allocations: 3.938 kB / 0.819 GB, free: 8.484 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.3177, allocations: 8 kB / 0.819 GB, free: 8.477 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.3178, allocations: 0 / 0.819 GB, free: 8.477 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3178, allocations: 4.125 kB / 0.819 GB, free: 8.473 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000467/0.3182, allocations: 353.3 kB / 0.8193 GB, free: 8.102 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001651/0.3184, allocations: 132.6 kB / 0.8194 GB, free: 7.953 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.88e-05/0.3185, allocations: 7.938 kB / 0.8194 GB, free: 7.945 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.3187, allocations: 11.98 kB / 0.8194 GB, free: 7.934 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.3187, allocations: 19.97 kB / 0.8195 GB, free: 7.914 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.3187, allocations: 4 kB / 0.8195 GB, free: 7.91 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0003241/0.3191, allocations: 330.9 kB / 0.8198 GB, free: 7.59 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3191, allocations: 0 / 0.8198 GB, free: 7.59 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0006733/0.3198, allocations: 199.6 kB / 0.82 GB, free: 7.395 MB / 0.6387 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 (16): * Single equations (assignments): 14 * 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.001118/0.3209, allocations: 481.3 kB / 0.8204 GB, free: 7.051 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0006475/0.3215, allocations: 275 kB / 0.8207 GB, free: 6.785 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3216, allocations: 0 / 0.8207 GB, free: 6.785 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.3218, allocations: 87.83 kB / 0.8208 GB, free: 6.699 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.3228, allocations: 211 kB / 0.821 GB, free: 6.504 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.3241, allocations: 0.6895 MB / 0.8217 GB, free: 5.777 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005171/0.3246, allocations: 0.8269 MB / 0.8225 GB, free: 4.926 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002561/0.3249, allocations: 87.19 kB / 0.8225 GB, free: 4.836 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.79e-05/0.325, allocations: 43.42 kB / 0.8226 GB, free: 4.793 MB / 0.6387 GB Notification: Performance of SimCode: time 6.41e-07/0.325, allocations: 3.938 kB / 0.8226 GB, free: 4.789 MB / 0.6387 GB Notification: Performance of Templates: time 0.01507/0.3401, allocations: 8.522 MB / 0.8309 GB, free: 12.39 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)