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.001355/0.001355, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001256/0.001256, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.358/1.358, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002218/0.002217, allocations: 279 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9641/0.9641, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002345/0.002345, allocations: 97.84 kB / 0.5947 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.161, allocations: 86.98 MB / 0.6796 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01662/0.1777, allocations: 17.35 MB / 0.6966 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006396/0.1841, allocations: 4.883 MB / 0.7013 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005155/0.1847, allocations: 11.94 kB / 0.7014 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008024/0.1855, allocations: 222.9 kB / 0.7016 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001525/0.1871, allocations: 0.5716 MB / 0.7021 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001811/0.1889, allocations: 0.6524 MB / 0.7028 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001/0.1899, allocations: 0.9663 MB / 0.7037 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004116/0.1903, allocations: 332.9 kB / 0.704 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006045/0.1909, allocations: 418.3 kB / 0.7044 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003522/0.1913, allocations: 318.6 kB / 0.7047 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.981e-05/0.1914, allocations: 31.98 kB / 0.7048 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001061/0.1924, allocations: 0.7369 MB / 0.7055 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.1926, allocations: 135.5 kB / 0.7056 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001991/0.1928, allocations: 246.6 kB / 0.7058 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009791/0.1937, allocations: 0.8763 MB / 0.7067 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1938, allocations: 8 kB / 0.7067 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.352e-06/0.1938, allocations: 0 / 0.7067 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.1938, allocations: 0 / 0.7067 GB, free: 5.254 MB / 0.4981 GB 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.00117/0.195, allocations: 0.868 MB / 0.7075 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.195, allocations: 12.03 kB / 0.7076 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/0.1952, allocations: 64.27 kB / 0.7076 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005261/0.1957, allocations: 445.6 kB / 0.708 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.1957, allocations: 28.5 kB / 0.7081 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.1958, allocations: 28 kB / 0.7081 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004814/0.1963, allocations: 290.2 kB / 0.7084 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.1963, allocations: 0 / 0.7084 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.1963, allocations: 12 kB / 0.7084 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.1963, allocations: 4 kB / 0.7084 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.1967, allocations: 194.1 kB / 0.7086 GB, free: 3.23 MB / 0.4981 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.001714/0.1984, allocations: 1.48 MB / 0.71 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.1988, allocations: 154.8 kB / 0.7102 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.1989, allocations: 84.81 kB / 0.7103 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00143/0.2004, allocations: 1.268 MB / 0.7115 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.2004, allocations: 42.5 kB / 0.7115 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.2004, allocations: 0 / 0.7115 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0005755/0.201, allocations: 258.8 kB / 0.7118 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.201, allocations: 55.41 kB / 0.7118 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005853/0.2016, allocations: 0.5847 MB / 0.7124 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.2017, allocations: 29.7 kB / 0.7124 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.2019, allocations: 276.1 kB / 0.7127 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.565e-05/0.2019, allocations: 51.2 kB / 0.7127 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.275e-05/0.202, allocations: 73.88 kB / 0.7128 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.2021, allocations: 354.8 kB / 0.7132 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.2023, allocations: 81.92 kB / 0.7132 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002726/0.2026, allocations: 206.7 kB / 0.7134 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003897/0.203, allocations: 246.5 kB / 0.7137 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.203, allocations: 0 / 0.7137 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005381/0.2035, allocations: 310.6 kB / 0.714 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.2036, allocations: 7.938 kB / 0.714 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.2036, allocations: 4.25 kB / 0.714 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.2036, allocations: 8 kB / 0.714 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.2038, allocations: 59.91 kB / 0.714 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/0.2039, allocations: 4 kB / 0.714 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003449/0.2042, allocations: 51.75 kB / 0.7141 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/0.2043, allocations: 15.94 kB / 0.7141 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002955/0.2046, allocations: 217.3 kB / 0.7143 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002617/0.2048, allocations: 214.7 kB / 0.7145 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003561/0.2052, allocations: 233.2 kB / 0.7147 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.703e-06/0.2052, allocations: 3.938 kB / 0.7147 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005236/0.2057, allocations: 307.2 kB / 0.715 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.865e-06/0.2058, allocations: 8.031 kB / 0.715 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2058, allocations: 7.938 kB / 0.715 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.059e-06/0.2058, allocations: 4 kB / 0.7151 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.206, allocations: 59.91 kB / 0.7151 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.206, allocations: 11.92 kB / 0.7151 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003409/0.2064, allocations: 39.81 kB / 0.7152 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.2064, allocations: 16 kB / 0.7152 GB, free: 11.91 MB / 0.5137 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.0001092/0.2065, allocations: 196.9 kB / 0.7154 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.527e-05/0.2066, allocations: 51.28 kB / 0.7154 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005108/0.2071, allocations: 257.7 kB / 0.7157 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.2071, allocations: 3.984 kB / 0.7157 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2071, allocations: 8 kB / 0.7157 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2071, allocations: 0 / 0.7157 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009383/0.2081, allocations: 0.7355 MB / 0.7164 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2081, allocations: 3.938 kB / 0.7164 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.2082, allocations: 32.11 kB / 0.7164 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.2082, allocations: 4 kB / 0.7164 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.2083, allocations: 12 kB / 0.7164 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.2083, allocations: 3.984 kB / 0.7164 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2083, allocations: 0 / 0.7164 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000443/0.2087, allocations: 352.1 kB / 0.7168 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.2089, allocations: 148.3 kB / 0.7169 GB, free: 10 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.509e-05/0.2089, allocations: 4 kB / 0.7169 GB, free: 9.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.2092, allocations: 15.98 kB / 0.7169 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.2092, allocations: 19.92 kB / 0.717 GB, free: 9.961 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.2092, allocations: 8 kB / 0.717 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004183/0.2097, allocations: 418.8 kB / 0.7174 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2097, allocations: 0 / 0.7174 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006892/0.2104, allocations: 231.7 kB / 0.7176 GB, free: 9.32 MB / 0.5137 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.001073/0.2114, allocations: 0.4904 MB / 0.7181 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006733/0.2121, allocations: 331.5 kB / 0.7184 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2121, allocations: 0 / 0.7184 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.2123, allocations: 93.02 kB / 0.7185 GB, free: 8.551 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.2135, allocations: 248.6 kB / 0.7187 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.2147, allocations: 0.9596 MB / 0.7196 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.2151, allocations: 0.8467 MB / 0.7205 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003194/0.2154, allocations: 108.5 kB / 0.7206 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.483e-05/0.2155, allocations: 39.44 kB / 0.7206 GB, free: 6.297 MB / 0.5137 GB Notification: Performance of SimCode: time 3.31e-07/0.2155, allocations: 0 / 0.7206 GB, free: 6.297 MB / 0.5137 GB Notification: Performance of Templates: time 0.01639/0.2319, allocations: 10.1 MB / 0.7305 GB, free: 12.37 MB / 0.5294 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)