Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 108.7 kB / 15.99 MB, free: 6.363 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.001237/0.001237, allocations: 191.9 kB / 16.91 MB, free: 6.195 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.319/1.319, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002249/0.002249, allocations: 280.7 kB / 291 MB, free: 14.71 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9596/0.9596, allocations: 169.2 MB / 0.4985 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 93.75 kB / 0.5953 GB, free: 4.445 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1638, allocations: 86.97 MB / 0.6803 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.3934/0.5573, allocations: 111.6 MB / 0.7893 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.03135/0.5886, allocations: 20.12 MB / 0.8089 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005044/0.5937, allocations: 99.12 kB / 0.809 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00436/0.5981, allocations: 1.09 MB / 0.8101 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01194/0.6101, allocations: 3.429 MB / 0.8134 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.009243/0.6194, allocations: 2.87 MB / 0.8162 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01256/0.6319, allocations: 7.267 MB / 0.8233 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004347/0.6363, allocations: 2.537 MB / 0.8258 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007842/0.6442, allocations: 2.818 MB / 0.8286 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004637/0.6489, allocations: 2.205 MB / 0.8307 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001024/0.6499, allocations: 253.2 kB / 0.831 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005157/0.6551, allocations: 1.653 MB / 0.8326 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0009737/0.6561, allocations: 0.689 MB / 0.8332 GB, free: 1.766 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00233/0.6584, allocations: 1.517 MB / 0.8347 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004368/0.6628, allocations: 3.456 MB / 0.8381 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.6628, allocations: 0 / 0.8381 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.864e-06/0.6628, allocations: 0 / 0.8381 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.982e-05/0.6629, allocations: 0 / 0.8381 GB, free: 14.3 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.005259/0.6681, allocations: 3.225 MB / 0.8412 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.6682, allocations: 8.031 kB / 0.8413 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000796/0.669, allocations: 336.8 kB / 0.8416 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003344/0.6723, allocations: 2.143 MB / 0.8437 GB, free: 9.094 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.824e-05/0.6725, allocations: 123 kB / 0.8438 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002371/0.6727, allocations: 168 kB / 0.8439 GB, free: 8.809 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002661/0.6754, allocations: 1.615 MB / 0.8455 GB, free: 7.129 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.882e-05/0.6754, allocations: 7.984 kB / 0.8455 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001301/0.6756, allocations: 63.94 kB / 0.8456 GB, free: 7.059 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-05/0.6756, allocations: 44 kB / 0.8456 GB, free: 7.016 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.6775, allocations: 1.147 MB / 0.8468 GB, free: 5.863 MB / 0.5919 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.0102/0.6877, allocations: 7.889 MB / 0.8545 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000744/0.6885, allocations: 471.2 kB / 0.8549 GB, free: 13 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004647/0.6889, allocations: 330.9 kB / 0.8552 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005923/0.6895, allocations: 0.7563 MB / 0.856 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.6896, allocations: 39.12 kB / 0.856 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=60): time 2.504e-06/0.6896, allocations: 0 / 0.856 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=60): time 0.001984/0.6916, allocations: 0.9919 MB / 0.857 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.6916, allocations: 59.97 kB / 0.857 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00283/0.6945, allocations: 2.312 MB / 0.8593 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.6946, allocations: 49.7 kB / 0.8593 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000893/0.6955, allocations: 1.153 MB / 0.8605 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.6957, allocations: 224.9 kB / 0.8607 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/0.6961, allocations: 254.6 kB / 0.8609 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.6962, allocations: 345.9 kB / 0.8612 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006143/0.6969, allocations: 357.9 kB / 0.8616 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009066/0.6978, allocations: 0.7541 MB / 0.8623 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/0.6991, allocations: 0.9785 MB / 0.8633 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.6991, allocations: 7.938 kB / 0.8633 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002264/0.7014, allocations: 1.295 MB / 0.8646 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.7014, allocations: 8 kB / 0.8646 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.7015, allocations: 8 kB / 0.8646 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.432e-05/0.7015, allocations: 16 kB / 0.8646 GB, free: 2.578 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009514/0.7025, allocations: 251.6 kB / 0.8648 GB, free: 2.332 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.104e-05/0.7025, allocations: 19.92 kB / 0.8648 GB, free: 2.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/0.7043, allocations: 242.4 kB / 0.8651 GB, free: 2.074 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.91e-05/0.7044, allocations: 51.98 kB / 0.8651 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001291/0.7057, allocations: 0.7602 MB / 0.8659 GB, free: 1.258 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008646/0.7065, allocations: 0.7426 MB / 0.8666 GB, free: 368 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00128/0.7078, allocations: 0.9445 MB / 0.8675 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.028e-06/0.7079, allocations: 0 / 0.8675 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002191/0.7101, allocations: 1.262 MB / 0.8687 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.7101, allocations: 14.59 kB / 0.8688 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.7101, allocations: 8 kB / 0.8688 GB, free: 14.01 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.7101, allocations: 16 kB / 0.8688 GB, free: 13.99 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008738/0.711, allocations: 248.3 kB / 0.869 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.823e-05/0.711, allocations: 23.92 kB / 0.869 GB, free: 13.73 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.7128, allocations: 183.1 kB / 0.8692 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.381e-05/0.7129, allocations: 51.98 kB / 0.8693 GB, free: 13.5 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * 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.0003332/0.7132, allocations: 247.9 kB / 0.8695 GB, free: 13.25 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004114/0.7136, allocations: 240.9 kB / 0.8697 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/0.7154, allocations: 0.8957 MB / 0.8706 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.7154, allocations: 12 kB / 0.8706 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.7154, allocations: 0 / 0.8706 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009716/0.7164, allocations: 0.6853 MB / 0.8713 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003911/0.7203, allocations: 2.566 MB / 0.8738 GB, free: 8.734 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.7204, allocations: 4.094 kB / 0.8738 GB, free: 8.73 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005067/0.7209, allocations: 127.9 kB / 0.8739 GB, free: 8.605 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.7209, allocations: 0 / 0.8739 GB, free: 8.605 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.343e-05/0.7209, allocations: 23.92 kB / 0.8739 GB, free: 8.582 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.795e-06/0.7209, allocations: 7.938 kB / 0.8739 GB, free: 8.574 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.7209, allocations: 0 / 0.8739 GB, free: 8.574 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/0.7229, allocations: 1.317 MB / 0.8752 GB, free: 7.227 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007713/0.7236, allocations: 417.9 kB / 0.8756 GB, free: 6.797 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002444/0.7239, allocations: 12 kB / 0.8756 GB, free: 6.785 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.725, allocations: 111.7 kB / 0.8758 GB, free: 6.676 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.7251, allocations: 52.38 kB / 0.8758 GB, free: 6.625 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.45e-05/0.7252, allocations: 35.97 kB / 0.8758 GB, free: 6.59 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.002064/0.7272, allocations: 1.55 MB / 0.8773 GB, free: 5.035 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.8e-07/0.7272, allocations: 0 / 0.8773 GB, free: 5.035 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002651/0.7299, allocations: 1.091 MB / 0.8784 GB, free: 3.941 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001624/0.7315, allocations: 0.731 MB / 0.8791 GB, free: 3.348 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002719/0.7343, allocations: 1.452 MB / 0.8805 GB, free: 1.906 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.7343, allocations: 4 kB / 0.8806 GB, free: 1.902 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005198/0.7348, allocations: 323 kB / 0.8809 GB, free: 1.582 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005669/0.7405, allocations: 1.385 MB / 0.8822 GB, free: 256 kB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006217/0.7467, allocations: 4.593 MB / 0.8867 GB, free: 11.61 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.7479, allocations: 1.586 MB / 0.8882 GB, free: 9.988 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006014/0.7485, allocations: 187.4 kB / 0.8884 GB, free: 9.805 MB / 0.6387 GB Notification: Performance of SimCode: time 6.61e-07/0.7485, allocations: 0 / 0.8884 GB, free: 9.805 MB / 0.6387 GB Notification: Performance of Templates: time 0.05524/0.8037, allocations: 39.25 MB / 0.9268 GB, free: 2.926 MB / 0.67 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)