Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009013/0.000901, allocations: 100.8 kB / 15.05 MB, free: 1.105 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.001079/0.001079, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.518/1.518, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.687/1.687, allocations: 292.5 MB / 0.5497 GB, free: 14.61 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.0005729/0.000573, allocations: 12.09 kB / 0.6735 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2653, allocations: 116.3 MB / 0.7871 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02778/0.2931, allocations: 25.41 MB / 0.8119 GB, free: 2.484 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01598/0.3092, allocations: 10.31 MB / 0.822 GB, free: 8.16 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001376/0.3106, allocations: 39.62 kB / 0.822 GB, free: 8.121 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001674/0.3123, allocations: 0.6184 MB / 0.8226 GB, free: 7.5 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.004336/0.3166, allocations: 1.385 MB / 0.824 GB, free: 6.113 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.007745/0.3244, allocations: 2.884 MB / 0.8268 GB, free: 3.266 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003471/0.3279, allocations: 2.096 MB / 0.8289 GB, free: 1.16 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00156/0.3294, allocations: 1.094 MB / 0.8299 GB, free: 56 kB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002204/0.3317, allocations: 1.27 MB / 0.8312 GB, free: 14.78 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002177/0.3338, allocations: 1.289 MB / 0.8324 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0003077/0.3342, allocations: 67.94 kB / 0.8325 GB, free: 13.42 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.3362, allocations: 0.901 MB / 0.8334 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0003934/0.3366, allocations: 330.8 kB / 0.8337 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0003619/0.3369, allocations: 245.1 kB / 0.8339 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001784/0.3387, allocations: 1.532 MB / 0.8354 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3387, allocations: 0 / 0.8354 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.284e-06/0.3388, allocations: 0 / 0.8354 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.377e-05/0.3388, allocations: 0 / 0.8354 GB, free: 10.41 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002191/0.341, allocations: 1.332 MB / 0.8367 GB, free: 9.027 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.341, allocations: 8.031 kB / 0.8367 GB, free: 9.02 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002697/0.3413, allocations: 142.6 kB / 0.8369 GB, free: 8.879 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.3429, allocations: 0.8564 MB / 0.8377 GB, free: 7.98 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.757e-05/0.343, allocations: 85.23 kB / 0.8378 GB, free: 7.898 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001912/0.3432, allocations: 120 kB / 0.8379 GB, free: 7.781 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.3442, allocations: 0.6279 MB / 0.8385 GB, free: 7.125 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.3442, allocations: 3.938 kB / 0.8385 GB, free: 7.121 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.823e-05/0.3443, allocations: 24 kB / 0.8385 GB, free: 7.098 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.3443, allocations: 16 kB / 0.8386 GB, free: 7.082 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000839/0.3452, allocations: 468.9 kB / 0.839 GB, free: 6.621 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.005075/0.3502, allocations: 2.883 MB / 0.8418 GB, free: 3.582 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005671/0.3508, allocations: 304.5 kB / 0.8421 GB, free: 3.277 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002978/0.3511, allocations: 344.7 kB / 0.8424 GB, free: 2.867 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/0.3512, allocations: 38.84 kB / 0.8425 GB, free: 2.82 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/0.3512, allocations: 0 / 0.8425 GB, free: 2.82 MB / 0.6544 GB Notification: Performance of matching and sorting (n=33): time 0.001244/0.3525, allocations: 0.5461 MB / 0.843 GB, free: 2.27 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.3525, allocations: 55.41 kB / 0.8431 GB, free: 2.203 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009418/0.3535, allocations: 0.883 MB / 0.8439 GB, free: 1.301 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.3536, allocations: 53.7 kB / 0.844 GB, free: 1.242 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004452/0.354, allocations: 0.5411 MB / 0.8445 GB, free: 0.6914 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 9.045e-05/0.3541, allocations: 110.4 kB / 0.8446 GB, free: 0.582 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-05/0.3542, allocations: 16 kB / 0.8446 GB, free: 0.5664 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.3543, allocations: 322 kB / 0.8449 GB, free: 252 kB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003446/0.3547, allocations: 181.2 kB / 0.8451 GB, free: 72 kB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/0.3559, allocations: 1.139 MB / 0.8462 GB, free: 14.56 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/0.3564, allocations: 298.8 kB / 0.8465 GB, free: 14.27 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.3564, allocations: 0 / 0.8465 GB, free: 14.27 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001174/0.3576, allocations: 0.6499 MB / 0.8471 GB, free: 13.62 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003078/0.3579, allocations: 0.8099 MB / 0.8479 GB, free: 12.75 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.3579, allocations: 4 kB / 0.8479 GB, free: 12.74 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.3579, allocations: 4 kB / 0.8479 GB, free: 12.74 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/0.3593, allocations: 239.6 kB / 0.8482 GB, free: 12.5 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/0.361, allocations: 2.965 MB / 0.8511 GB, free: 9.422 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003294/0.3643, allocations: 0.7455 MB / 0.8518 GB, free: 8.672 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.658e-05/0.3644, allocations: 27.98 kB / 0.8518 GB, free: 8.645 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3645, allocations: 7.125 kB / 0.8518 GB, free: 8.641 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009541/0.3654, allocations: 0.4973 MB / 0.8523 GB, free: 8.145 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.3654, allocations: 8.031 kB / 0.8523 GB, free: 8.137 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.3655, allocations: 7.984 kB / 0.8523 GB, free: 8.129 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006401/0.3661, allocations: 160 kB / 0.8525 GB, free: 7.973 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.3661, allocations: 8 kB / 0.8525 GB, free: 7.965 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003114/0.3692, allocations: 0.73 MB / 0.8532 GB, free: 7.234 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.374e-05/0.3693, allocations: 27.98 kB / 0.8532 GB, free: 7.207 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005521/0.3699, allocations: 333.9 kB / 0.8535 GB, free: 6.871 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.37, allocations: 94.78 kB / 0.8536 GB, free: 6.777 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/0.371, allocations: 0.5207 MB / 0.8541 GB, free: 6.25 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.3711, allocations: 4 kB / 0.8541 GB, free: 6.246 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3711, allocations: 4 kB / 0.8541 GB, free: 6.242 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3711, allocations: 7.984 kB / 0.8542 GB, free: 6.234 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/0.373, allocations: 1.26 MB / 0.8554 GB, free: 4.906 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3731, allocations: 0 / 0.8554 GB, free: 4.906 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005156/0.3736, allocations: 119.8 kB / 0.8555 GB, free: 4.789 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.3736, allocations: 7.984 kB / 0.8555 GB, free: 4.781 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.3736, allocations: 12 kB / 0.8555 GB, free: 4.77 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001253/0.3749, allocations: 2.946 MB / 0.8584 GB, free: 1.707 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3749, allocations: 4.031 kB / 0.8584 GB, free: 1.703 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008186/0.3757, allocations: 0.6261 MB / 0.859 GB, free: 1.027 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/0.376, allocations: 223.7 kB / 0.8592 GB, free: 0.7891 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.478e-05/0.3761, allocations: 8 kB / 0.8592 GB, free: 0.7812 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000484/0.3766, allocations: 63.78 kB / 0.8593 GB, free: 0.7188 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.161e-05/0.3767, allocations: 27.91 kB / 0.8593 GB, free: 0.6914 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.3767, allocations: 19.98 kB / 0.8593 GB, free: 0.6719 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0006714/0.3774, allocations: 0.5845 MB / 0.8599 GB, free: 80 kB / 0.67 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3774, allocations: 0 / 0.8599 GB, free: 80 kB / 0.67 GB Notification: Performance of remove unused functions: time 0.001426/0.3788, allocations: 0.5384 MB / 0.8604 GB, free: 15.54 MB / 0.6856 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006991/0.3795, allocations: 320.6 kB / 0.8607 GB, free: 15.22 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002405/0.382, allocations: 0.843 MB / 0.8616 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.382, allocations: 0 / 0.8616 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005602/0.3825, allocations: 241.1 kB / 0.8618 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/0.3848, allocations: 492.6 kB / 0.8623 GB, free: 13.67 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.3872, allocations: 1.768 MB / 0.864 GB, free: 11.86 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005479/0.3877, allocations: 1.046 MB / 0.865 GB, free: 10.79 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001087/0.3888, allocations: 219 kB / 0.8652 GB, free: 10.57 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.389, allocations: 83.36 kB / 0.8653 GB, free: 10.48 MB / 0.6856 GB Notification: Performance of SimCode: time 3.71e-07/0.389, allocations: 4 kB / 0.8653 GB, free: 10.48 MB / 0.6856 GB Notification: Performance of Templates: time 0.03796/0.427, allocations: 23.72 MB / 0.8885 GB, free: 3.227 MB / 0.7012 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) Environment - environmentSimulation: