Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.5073/0.5094, allocations: 80.81 MB / 0.5904 GB, free: 22.23 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.08034/0.5898, allocations: 78.03 MB / 0.6666 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02844/0.6183, allocations: 15.56 MB / 0.6818 GB, free: 8.957 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004021/0.6225, allocations: 75.5 kB / 0.6819 GB, free: 8.883 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003638/0.6261, allocations: 0.8694 MB / 0.6827 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.009217/0.6354, allocations: 2.359 MB / 0.685 GB, free: 5.641 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005305/0.6407, allocations: 1.593 MB / 0.6866 GB, free: 4.062 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.008286/0.649, allocations: 4.571 MB / 0.691 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003361/0.6524, allocations: 1.571 MB / 0.6926 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007185/0.6597, allocations: 1.813 MB / 0.6944 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003758/0.6635, allocations: 1.408 MB / 0.6957 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0005734/0.6641, allocations: 164 kB / 0.6959 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004187/0.6683, allocations: 1.194 MB / 0.697 GB, free: 9.289 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0006461/0.6689, allocations: 450.3 kB / 0.6975 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001887/0.6708, allocations: 0.9603 MB / 0.6984 GB, free: 7.883 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.005756/0.6766, allocations: 2.789 MB / 0.7011 GB, free: 5.086 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.6766, allocations: 0 / 0.7011 GB, free: 5.086 MB / 0.5294 GB Notification: Performance of FrontEnd: time 4.038e-06/0.6767, allocations: 0 / 0.7011 GB, free: 5.086 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.397e-05/0.6767, allocations: 3.938 kB / 0.7011 GB, free: 5.082 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 275 * Number of variables: 275 Notification: Performance of Generate backend data structure: time 0.004947/0.6817, allocations: 2.127 MB / 0.7032 GB, free: 2.898 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.6818, allocations: 12.03 kB / 0.7032 GB, free: 2.887 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000852/0.6826, allocations: 210.6 kB / 0.7034 GB, free: 2.68 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002916/0.6856, allocations: 1.293 MB / 0.7047 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.055e-05/0.6857, allocations: 86.17 kB / 0.7048 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001961/0.6859, allocations: 112 kB / 0.7049 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004519/0.6904, allocations: 1.546 MB / 0.7064 GB, free: 15.48 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.6905, allocations: 7.875 kB / 0.7064 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001087/0.6906, allocations: 48 kB / 0.7064 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-05/0.6907, allocations: 35.98 kB / 0.7065 GB, free: 15.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003585/0.6942, allocations: 1.139 MB / 0.7076 GB, free: 14.25 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 preOpt removeSimpleEquations (simulation): time 0.01072/0.705, allocations: 6.751 MB / 0.7142 GB, free: 7.078 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002483/0.7075, allocations: 0.6651 MB / 0.7148 GB, free: 6.406 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003756/0.7079, allocations: 213.4 kB / 0.715 GB, free: 6.195 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002738/0.7082, allocations: 174.5 kB / 0.7152 GB, free: 5.988 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.7083, allocations: 46.83 kB / 0.7153 GB, free: 5.934 MB / 0.545 GB Notification: Performance of pre-optimization done (n=39): time 4.198e-06/0.7083, allocations: 0 / 0.7153 GB, free: 5.934 MB / 0.545 GB Notification: Performance of matching and sorting (n=43): time 0.009225/0.7175, allocations: 2.535 MB / 0.7177 GB, free: 3.332 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.151e-05/0.7176, allocations: 132.5 kB / 0.7179 GB, free: 3.172 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002401/0.7201, allocations: 1.447 MB / 0.7193 GB, free: 1.719 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001807/0.7203, allocations: 41.7 kB / 0.7193 GB, free: 1.672 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007097/0.721, allocations: 0.7583 MB / 0.72 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.7212, allocations: 157.7 kB / 0.7202 GB, free: 0.7461 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003347/0.7215, allocations: 198.4 kB / 0.7204 GB, free: 0.543 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.7217, allocations: 349.8 kB / 0.7207 GB, free: 200 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.7228, allocations: 384.7 kB / 0.7211 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001355/0.7242, allocations: 0.6914 MB / 0.7218 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00226/0.7265, allocations: 0.9932 MB / 0.7227 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.7265, allocations: 4 kB / 0.7227 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003156/0.7297, allocations: 1.199 MB / 0.7239 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.7297, allocations: 8 kB / 0.7239 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.7297, allocations: 16.03 kB / 0.7239 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.532e-05/0.7298, allocations: 16 kB / 0.7239 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.731, allocations: 259.6 kB / 0.7242 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.466e-05/0.731, allocations: 20 kB / 0.7242 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.7326, allocations: 107.8 kB / 0.7243 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.999e-05/0.7327, allocations: 43.92 kB / 0.7244 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00115/0.7339, allocations: 0.541 MB / 0.7249 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008085/0.7347, allocations: 0.572 MB / 0.7254 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001209/0.7359, allocations: 0.7794 MB / 0.7262 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.033e-06/0.7359, allocations: 4 kB / 0.7262 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002157/0.7381, allocations: 0.9728 MB / 0.7272 GB, free: 9.086 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.7381, allocations: 8 kB / 0.7272 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.7382, allocations: 11.94 kB / 0.7272 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.7382, allocations: 12 kB / 0.7272 GB, free: 9.055 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007627/0.7389, allocations: 203.7 kB / 0.7274 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/0.739, allocations: 19.94 kB / 0.7274 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.7402, allocations: 60.27 kB / 0.7275 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-05/0.7403, allocations: 36 kB / 0.7275 GB, free: 8.742 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (112): * Single equations (assignments): 112 * 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.0003712/0.7406, allocations: 243.9 kB / 0.7277 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003083/0.7409, allocations: 150.1 kB / 0.7279 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002611/0.7436, allocations: 0.9194 MB / 0.7288 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/0.7436, allocations: 4 kB / 0.7288 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.7436, allocations: 0 / 0.7288 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002193/0.7458, allocations: 1.05 MB / 0.7298 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00492/0.7507, allocations: 2.153 MB / 0.7319 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.7508, allocations: 0 / 0.7319 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007007/0.7515, allocations: 136 kB / 0.732 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002362/0.7517, allocations: 77.67 kB / 0.7321 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.241e-05/0.7518, allocations: 19.92 kB / 0.7321 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008565/0.7527, allocations: 1.163 MB / 0.7333 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.7527, allocations: 3.938 kB / 0.7333 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003469/0.7561, allocations: 1.363 MB / 0.7346 GB, free: 1.188 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008805/0.7571, allocations: 291.2 kB / 0.7349 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002257/0.7573, allocations: 16 kB / 0.7349 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009884/0.7583, allocations: 79.91 kB / 0.735 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.993e-05/0.7584, allocations: 35.83 kB / 0.735 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.977e-05/0.7585, allocations: 23.98 kB / 0.735 GB, free: 0.7305 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001503/0.76, allocations: 0.9741 MB / 0.736 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.936e-06/0.76, allocations: 0 / 0.736 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002055/0.762, allocations: 0.6523 MB / 0.7366 GB, free: 15.11 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U) * 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 (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008899/0.7629, allocations: 358.8 kB / 0.7369 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003436/0.7664, allocations: 1.322 MB / 0.7382 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/0.7664, allocations: 4.125 kB / 0.7382 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.7675, allocations: 371.8 kB / 0.7386 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004725/0.7723, allocations: 0.9164 MB / 0.7395 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01223/0.7845, allocations: 3.635 MB / 0.743 GB, free: 8.543 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009254/0.7855, allocations: 1.245 MB / 0.7443 GB, free: 7.27 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001909/0.7874, allocations: 328.1 kB / 0.7446 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003568/0.7878, allocations: 115.4 kB / 0.7447 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of SimCode: time 1.342e-06/0.7878, allocations: 0 / 0.7447 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of Templates: time 0.4417/1.229, allocations: 32.25 MB / 0.7762 GB, free: 139.3 MB / 0.5762 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)