Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 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.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001556/0.001556, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001553/0.001553, allocations: 192.5 kB / 16.25 MB, free: 6.633 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.434/1.434, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002554/0.002554, allocations: 286.6 kB / 290.4 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.091/1.091, allocations: 178.6 MB / 0.5069 GB, free: 4.777 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002777/0.002777, allocations: 100.5 kB / 0.6059 GB, free: 25.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.1818, allocations: 89.16 MB / 0.693 GB, free: 4.73 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01773/0.1995, allocations: 15.45 MB / 0.7081 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006486/0.206, allocations: 4.3 MB / 0.7123 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004366/0.2065, allocations: 15.88 kB / 0.7123 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008644/0.2074, allocations: 230.8 kB / 0.7125 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001361/0.2088, allocations: 0.5716 MB / 0.7131 GB, free: 100 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.2105, allocations: 0.6371 MB / 0.7137 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001243/0.2117, allocations: 1.033 MB / 0.7147 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004747/0.2122, allocations: 332.1 kB / 0.715 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006558/0.2129, allocations: 418.3 kB / 0.7154 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004143/0.2133, allocations: 334.5 kB / 0.7157 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 5.518e-05/0.2134, allocations: 28 kB / 0.7158 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00102/0.2144, allocations: 0.6239 MB / 0.7164 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.2145, allocations: 107.5 kB / 0.7165 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.2148, allocations: 230.8 kB / 0.7167 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0009756/0.2158, allocations: 0.7633 MB / 0.7174 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2158, allocations: 3.938 kB / 0.7174 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2158, allocations: 0 / 0.7174 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.276e-06/0.2158, allocations: 0 / 0.7174 GB, free: 11.62 MB / 0.5137 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.001257/0.2171, allocations: 0.829 MB / 0.7182 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2171, allocations: 12.03 kB / 0.7183 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.2172, allocations: 48.38 kB / 0.7183 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005841/0.2178, allocations: 413.4 kB / 0.7187 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/0.2178, allocations: 24.42 kB / 0.7187 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.627e-05/0.2179, allocations: 24 kB / 0.7187 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004537/0.2184, allocations: 215.2 kB / 0.719 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.2184, allocations: 0 / 0.719 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/0.2184, allocations: 8 kB / 0.719 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.2184, allocations: 8 kB / 0.719 GB, free: 9.965 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003917/0.2188, allocations: 165.6 kB / 0.7191 GB, free: 9.801 MB / 0.5137 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.001628/0.2205, allocations: 0.9534 MB / 0.7201 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.2208, allocations: 134.6 kB / 0.7202 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.2209, allocations: 72.75 kB / 0.7203 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003155/0.2213, allocations: 336.4 kB / 0.7206 GB, free: 8.156 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.2213, allocations: 38.56 kB / 0.7206 GB, free: 8.109 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.2213, allocations: 0 / 0.7206 GB, free: 8.109 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14): time 0.0006367/0.222, allocations: 225.1 kB / 0.7208 GB, free: 7.883 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.222, allocations: 59.41 kB / 0.7209 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005432/0.2226, allocations: 474 kB / 0.7213 GB, free: 7.34 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.2226, allocations: 29.7 kB / 0.7214 GB, free: 7.305 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.2228, allocations: 236.6 kB / 0.7216 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.957e-05/0.2229, allocations: 51.3 kB / 0.7216 GB, free: 7.016 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.966e-05/0.223, allocations: 61.55 kB / 0.7217 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001672/0.2231, allocations: 362.7 kB / 0.722 GB, free: 6.586 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.2233, allocations: 76.67 kB / 0.7221 GB, free: 6.508 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.2236, allocations: 153.3 kB / 0.7223 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.224, allocations: 156.3 kB / 0.7224 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.224, allocations: 0 / 0.7224 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005347/0.2245, allocations: 263.1 kB / 0.7227 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2246, allocations: 4 kB / 0.7227 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2246, allocations: 0 / 0.7227 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.2246, allocations: 4 kB / 0.7227 GB, free: 5.902 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.2248, allocations: 51.91 kB / 0.7227 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.2248, allocations: 0 / 0.7227 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003428/0.2252, allocations: 47.81 kB / 0.7228 GB, free: 5.805 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.019e-05/0.2252, allocations: 11.92 kB / 0.7228 GB, free: 5.793 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002934/0.2255, allocations: 188.1 kB / 0.723 GB, free: 5.605 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002649/0.2258, allocations: 153.4 kB / 0.7231 GB, free: 5.422 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000341/0.2262, allocations: 176.1 kB / 0.7233 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.232e-06/0.2262, allocations: 0 / 0.7233 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005198/0.2267, allocations: 257 kB / 0.7235 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.556e-06/0.2267, allocations: 4 kB / 0.7235 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-06/0.2267, allocations: 0 / 0.7235 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.308e-06/0.2267, allocations: 4 kB / 0.7235 GB, free: 4.969 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.227, allocations: 47.91 kB / 0.7236 GB, free: 4.922 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.494e-06/0.227, allocations: 0 / 0.7236 GB, free: 4.922 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003629/0.2273, allocations: 43.84 kB / 0.7236 GB, free: 4.879 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.2274, allocations: 15.98 kB / 0.7236 GB, free: 4.863 MB / 0.5137 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.0001329/0.2275, allocations: 192.8 kB / 0.7238 GB, free: 4.668 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.652e-05/0.2276, allocations: 43.44 kB / 0.7238 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005788/0.2282, allocations: 257.2 kB / 0.7241 GB, free: 4.367 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.2282, allocations: 4 kB / 0.7241 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2282, allocations: 3.938 kB / 0.7241 GB, free: 4.359 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2282, allocations: 0 / 0.7241 GB, free: 4.359 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.2292, allocations: 0.7 MB / 0.7248 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.2293, allocations: 8.031 kB / 0.7248 GB, free: 3.586 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.2294, allocations: 27.92 kB / 0.7248 GB, free: 3.559 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.248e-06/0.2294, allocations: 7.984 kB / 0.7248 GB, free: 3.551 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.2294, allocations: 4 kB / 0.7248 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.2294, allocations: 7.938 kB / 0.7248 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2294, allocations: 0 / 0.7248 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005118/0.23, allocations: 348.5 kB / 0.7252 GB, free: 3.172 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.2301, allocations: 132.6 kB / 0.7253 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.291e-05/0.2302, allocations: 4 kB / 0.7253 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002437/0.2304, allocations: 27.92 kB / 0.7253 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.2305, allocations: 12.16 kB / 0.7253 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.2305, allocations: 12.09 kB / 0.7254 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003791/0.2309, allocations: 334.8 kB / 0.7257 GB, free: 2.645 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2309, allocations: 0 / 0.7257 GB, free: 2.645 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006512/0.2316, allocations: 207.5 kB / 0.7259 GB, free: 2.441 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 (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.001573/0.2331, allocations: 482.3 kB / 0.7263 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006822/0.2338, allocations: 279.7 kB / 0.7266 GB, free: 1.828 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2338, allocations: 0 / 0.7266 GB, free: 1.828 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001926/0.234, allocations: 87.83 kB / 0.7267 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.2351, allocations: 197 kB / 0.7269 GB, free: 1.555 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.2365, allocations: 0.8381 MB / 0.7277 GB, free: 0.6758 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/0.2369, allocations: 0.827 MB / 0.7285 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002996/0.2373, allocations: 88.5 kB / 0.7286 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.914e-05/0.2373, allocations: 35.44 kB / 0.7286 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of SimCode: time 2.51e-07/0.2374, allocations: 3.938 kB / 0.7286 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.01755/0.2549, allocations: 8.415 MB / 0.7368 GB, free: 7.43 MB / 0.5294 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)