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.001743/0.001743, allocations: 118.9 kB / 16.38 MB, free: 6.012 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.001818/0.001818, allocations: 190.4 kB / 17.3 MB, free: 5.617 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.443/1.443, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.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.77/1.77, allocations: 292.3 MB / 0.5496 GB, free: 17.59 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.001418/0.001418, allocations: 75.03 kB / 0.6729 GB, free: 5.832 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2411, allocations: 114.6 MB / 0.7848 GB, free: 3.168 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.4299/0.6711, allocations: 15.71 MB / 0.8001 GB, free: 40.89 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01006/0.6812, allocations: 7.049 MB / 0.807 GB, free: 36.82 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.6823, allocations: 21.75 kB / 0.807 GB, free: 36.81 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.6834, allocations: 267.9 kB / 0.8073 GB, free: 36.65 MB / 0.6544 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.001924/0.6854, allocations: 0.5981 MB / 0.8079 GB, free: 36.3 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.002108/0.6875, allocations: 0.6899 MB / 0.8086 GB, free: 35.98 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.001671/0.6892, allocations: 1.017 MB / 0.8095 GB, free: 35.52 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005433/0.6897, allocations: 329.4 kB / 0.8099 GB, free: 35.39 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007379/0.6905, allocations: 412.2 kB / 0.8103 GB, free: 35.21 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004877/0.691, allocations: 323.5 kB / 0.8106 GB, free: 35.07 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.011e-05/0.691, allocations: 26.91 kB / 0.8106 GB, free: 35.07 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001404/0.6925, allocations: 0.6223 MB / 0.8112 GB, free: 34.87 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.6926, allocations: 102.8 kB / 0.8113 GB, free: 34.81 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002429/0.6929, allocations: 219.2 kB / 0.8115 GB, free: 34.68 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001339/0.6942, allocations: 0.7541 MB / 0.8122 GB, free: 34.4 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.6942, allocations: 0.6562 kB / 0.8122 GB, free: 34.4 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6942, allocations: 0 / 0.8122 GB, free: 34.4 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.228e-06/0.6942, allocations: 1.5 kB / 0.8122 GB, free: 34.4 MB / 0.6544 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.001242/0.6955, allocations: 0.8216 MB / 0.813 GB, free: 33.75 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.6955, allocations: 10.38 kB / 0.8131 GB, free: 33.75 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.6957, allocations: 55.47 kB / 0.8131 GB, free: 33.73 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006636/0.6963, allocations: 436.2 kB / 0.8135 GB, free: 33.4 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.6964, allocations: 21.44 kB / 0.8135 GB, free: 33.39 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.895e-05/0.6964, allocations: 27.66 kB / 0.8136 GB, free: 33.39 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004832/0.6969, allocations: 211 kB / 0.8138 GB, free: 33.3 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.6969, allocations: 1.547 kB / 0.8138 GB, free: 33.3 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.697, allocations: 13.94 kB / 0.8138 GB, free: 33.29 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.697, allocations: 5.141 kB / 0.8138 GB, free: 33.29 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000399/0.6974, allocations: 163.3 kB / 0.8139 GB, free: 33.24 MB / 0.6544 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.001603/0.699, allocations: 0.9369 MB / 0.8149 GB, free: 32.62 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003078/0.6993, allocations: 139.3 kB / 0.815 GB, free: 32.56 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.6995, allocations: 69.38 kB / 0.8151 GB, free: 32.54 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002298/0.6997, allocations: 342.2 kB / 0.8154 GB, free: 32.15 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.6998, allocations: 32.8 kB / 0.8154 GB, free: 32.11 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.6998, allocations: 0 / 0.8154 GB, free: 32.11 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14): time 0.0006879/0.7005, allocations: 243.6 kB / 0.8156 GB, free: 32.01 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.7005, allocations: 58.16 kB / 0.8157 GB, free: 31.94 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005398/0.7011, allocations: 470.7 kB / 0.8162 GB, free: 31.72 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.7011, allocations: 31.42 kB / 0.8162 GB, free: 31.69 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.7013, allocations: 231.1 kB / 0.8164 GB, free: 31.5 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.091e-05/0.7013, allocations: 44.55 kB / 0.8164 GB, free: 31.46 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.7014, allocations: 57.83 kB / 0.8165 GB, free: 31.43 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.7016, allocations: 353.8 kB / 0.8168 GB, free: 31.1 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.7018, allocations: 76.92 kB / 0.8169 GB, free: 31.07 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000346/0.7021, allocations: 153.5 kB / 0.8171 GB, free: 30.97 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004239/0.7026, allocations: 165.1 kB / 0.8172 GB, free: 30.9 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.7026, allocations: 0 / 0.8172 GB, free: 30.9 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006835/0.7033, allocations: 257.6 kB / 0.8175 GB, free: 30.79 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.7033, allocations: 4.938 kB / 0.8175 GB, free: 30.79 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.7033, allocations: 1.484 kB / 0.8175 GB, free: 30.79 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.797e-05/0.7034, allocations: 1.938 kB / 0.8175 GB, free: 30.79 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.7036, allocations: 54.66 kB / 0.8175 GB, free: 30.78 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.7037, allocations: 2.438 kB / 0.8175 GB, free: 30.78 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003972/0.7041, allocations: 35.92 kB / 0.8176 GB, free: 30.76 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.828e-05/0.7041, allocations: 10.62 kB / 0.8176 GB, free: 30.76 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003324/0.7045, allocations: 191 kB / 0.8177 GB, free: 30.64 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002973/0.7048, allocations: 161.7 kB / 0.8179 GB, free: 30.52 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003561/0.7051, allocations: 163.8 kB / 0.8181 GB, free: 30.44 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.158e-06/0.7051, allocations: 5.344 kB / 0.8181 GB, free: 30.44 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005726/0.7057, allocations: 251.7 kB / 0.8183 GB, free: 30.33 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.7057, allocations: 8.359 kB / 0.8183 GB, free: 30.33 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.7058, allocations: 1.125 kB / 0.8183 GB, free: 30.33 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.067e-06/0.7058, allocations: 2.375 kB / 0.8183 GB, free: 30.33 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.706, allocations: 48.8 kB / 0.8184 GB, free: 30.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.706, allocations: 7.188 kB / 0.8184 GB, free: 30.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000385/0.7064, allocations: 34.69 kB / 0.8184 GB, free: 30.31 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.7064, allocations: 15.73 kB / 0.8184 GB, free: 30.3 MB / 0.6544 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.0001449/0.7066, allocations: 193.3 kB / 0.8186 GB, free: 30.11 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.723e-05/0.7067, allocations: 46.48 kB / 0.8186 GB, free: 30.09 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006662/0.7073, allocations: 247 kB / 0.8189 GB, free: 29.98 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/0.7074, allocations: 3.531 kB / 0.8189 GB, free: 29.98 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.7074, allocations: 0 / 0.8189 GB, free: 29.98 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.7074, allocations: 1.219 kB / 0.8189 GB, free: 29.98 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001294/0.7087, allocations: 0.7086 MB / 0.8196 GB, free: 29.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.7087, allocations: 2 kB / 0.8196 GB, free: 29.5 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.7089, allocations: 27.12 kB / 0.8196 GB, free: 29.5 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.7089, allocations: 6.312 kB / 0.8196 GB, free: 29.49 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.7089, allocations: 7.594 kB / 0.8196 GB, free: 29.49 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.7089, allocations: 3 kB / 0.8196 GB, free: 29.49 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.7089, allocations: 1.312 kB / 0.8196 GB, free: 29.49 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000463/0.7094, allocations: 339.2 kB / 0.8199 GB, free: 29.25 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.7095, allocations: 140 kB / 0.8201 GB, free: 29.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.395e-05/0.7096, allocations: 6.719 kB / 0.8201 GB, free: 29.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.7098, allocations: 15.83 kB / 0.8201 GB, free: 29.12 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.603e-05/0.7098, allocations: 15.22 kB / 0.8201 GB, free: 29.11 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.7099, allocations: 10.48 kB / 0.8201 GB, free: 29.11 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003907/0.7103, allocations: 331.4 kB / 0.8204 GB, free: 28.96 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.272e-06/0.7103, allocations: 0 / 0.8204 GB, free: 28.96 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0007909/0.7111, allocations: 198 kB / 0.8206 GB, free: 28.92 MB / 0.6544 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.001151/0.7122, allocations: 487.6 kB / 0.8211 GB, free: 28.76 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000763/0.713, allocations: 264.5 kB / 0.8213 GB, free: 28.7 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.713, allocations: 4.125 kB / 0.8214 GB, free: 28.69 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001953/0.7132, allocations: 85.03 kB / 0.8214 GB, free: 28.67 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.7144, allocations: 212.4 kB / 0.8216 GB, free: 28.62 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.7157, allocations: 0.7296 MB / 0.8223 GB, free: 28.17 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.716, allocations: 0.8284 MB / 0.8232 GB, free: 27.46 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.7161, allocations: 40.56 kB / 0.8232 GB, free: 27.45 MB / 0.6544 GB Notification: Performance of SimCode: time 2.6e-07/0.7161, allocations: 0 / 0.8232 GB, free: 27.45 MB / 0.6544 GB Notification: Performance of Templates: time 0.01816/0.7343, allocations: 7.343 MB / 0.8304 GB, free: 26.71 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)