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.001094/0.001094, allocations: 105.2 kB / 16.35 MB, free: 5.824 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.001068/0.001068, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.302/1.302, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002106/0.002106, allocations: 291.1 kB / 291.4 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9305/0.9305, allocations: 169.2 MB / 0.4989 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 93.67 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1618/0.1637, allocations: 86.98 MB / 0.6816 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.3706/0.5344, allocations: 112.6 MB / 0.7916 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02865/0.5631, allocations: 20.26 MB / 0.8114 GB, free: 9.844 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004067/0.5672, allocations: 111.3 kB / 0.8115 GB, free: 9.734 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003601/0.5708, allocations: 1.269 MB / 0.8127 GB, free: 8.457 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.009408/0.5803, allocations: 3.68 MB / 0.8163 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007504/0.5878, allocations: 3.131 MB / 0.8194 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009058/0.5968, allocations: 7.206 MB / 0.8264 GB, free: 10.44 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00336/0.6002, allocations: 2.572 MB / 0.8289 GB, free: 7.805 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005913/0.6061, allocations: 2.833 MB / 0.8317 GB, free: 4.973 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003615/0.6098, allocations: 2.12 MB / 0.8338 GB, free: 2.844 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0005778/0.6104, allocations: 256 kB / 0.834 GB, free: 2.594 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003619/0.614, allocations: 1.642 MB / 0.8356 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0007536/0.6148, allocations: 0.6928 MB / 0.8363 GB, free: 260 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001956/0.6167, allocations: 1.512 MB / 0.8378 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.005619/0.6224, allocations: 4.4 MB / 0.842 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.6224, allocations: 3.938 kB / 0.8421 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.944e-06/0.6224, allocations: 0 / 0.8421 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.595e-05/0.6225, allocations: 0 / 0.8421 GB, free: 10.32 MB / 0.6075 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.005053/0.6275, allocations: 3.234 MB / 0.8452 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.6276, allocations: 12.03 kB / 0.8452 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000721/0.6283, allocations: 324.8 kB / 0.8455 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003623/0.6319, allocations: 2.201 MB / 0.8477 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.48e-05/0.632, allocations: 123 kB / 0.8478 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002185/0.6323, allocations: 168 kB / 0.848 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002481/0.6348, allocations: 1.608 MB / 0.8495 GB, free: 2.457 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/0.6348, allocations: 4 kB / 0.8495 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.6349, allocations: 60 kB / 0.8496 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.347e-05/0.635, allocations: 47.94 kB / 0.8496 GB, free: 2.348 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.6369, allocations: 1.155 MB / 0.8508 GB, free: 1.188 MB / 0.6075 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.009956/0.6469, allocations: 7.908 MB / 0.8585 GB, free: 8.77 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007809/0.6477, allocations: 470.7 kB / 0.8589 GB, free: 8.301 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004895/0.6482, allocations: 334.8 kB / 0.8593 GB, free: 7.973 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006143/0.6488, allocations: 0.7562 MB / 0.86 GB, free: 7.047 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.6489, allocations: 43.12 kB / 0.86 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=60): time 2.204e-06/0.6489, allocations: 0 / 0.86 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of matching and sorting (n=60): time 0.00191/0.6508, allocations: 0.9881 MB / 0.861 GB, free: 6.004 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.6508, allocations: 59.97 kB / 0.8611 GB, free: 5.934 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002716/0.6536, allocations: 2.339 MB / 0.8633 GB, free: 3.582 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 8.432e-05/0.6537, allocations: 41.7 kB / 0.8634 GB, free: 3.535 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008457/0.6545, allocations: 1.153 MB / 0.8645 GB, free: 2.371 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.6547, allocations: 216.9 kB / 0.8647 GB, free: 2.156 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003408/0.655, allocations: 254.6 kB / 0.865 GB, free: 1.898 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6552, allocations: 345.9 kB / 0.8653 GB, free: 1.555 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006599/0.6559, allocations: 365.9 kB / 0.8656 GB, free: 1.195 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009602/0.6568, allocations: 0.7502 MB / 0.8664 GB, free: 300 kB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.6582, allocations: 0.9824 MB / 0.8673 GB, free: 15.2 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.6582, allocations: 0 / 0.8673 GB, free: 15.2 MB / 0.6387 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002144/0.6604, allocations: 1.299 MB / 0.8686 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.6604, allocations: 8 kB / 0.8686 GB, free: 13.88 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.6604, allocations: 8 kB / 0.8686 GB, free: 13.88 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.969e-05/0.6605, allocations: 16 kB / 0.8686 GB, free: 13.86 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000987/0.6615, allocations: 251.6 kB / 0.8689 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.812e-05/0.6615, allocations: 19.98 kB / 0.8689 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.6628, allocations: 162.5 kB / 0.869 GB, free: 13.43 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.275e-05/0.6629, allocations: 55.92 kB / 0.8691 GB, free: 13.38 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00122/0.6641, allocations: 0.7602 MB / 0.8698 GB, free: 12.61 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009768/0.6651, allocations: 0.7388 MB / 0.8706 GB, free: 11.72 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001423/0.6665, allocations: 0.9445 MB / 0.8715 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.949e-06/0.6666, allocations: 4 kB / 0.8715 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002195/0.6688, allocations: 1.262 MB / 0.8727 GB, free: 9.387 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.6688, allocations: 8 kB / 0.8727 GB, free: 9.379 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.6688, allocations: 11.94 kB / 0.8727 GB, free: 9.367 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.6688, allocations: 16 kB / 0.8728 GB, free: 9.352 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008969/0.6697, allocations: 247.6 kB / 0.873 GB, free: 9.109 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/0.6698, allocations: 23.92 kB / 0.873 GB, free: 9.086 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.6711, allocations: 127.5 kB / 0.8731 GB, free: 8.961 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.24e-05/0.6712, allocations: 47.98 kB / 0.8732 GB, free: 8.914 MB / 0.6387 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.0003194/0.6715, allocations: 247.9 kB / 0.8734 GB, free: 8.664 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003366/0.6719, allocations: 241.2 kB / 0.8736 GB, free: 8.426 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.6735, allocations: 0.8887 MB / 0.8745 GB, free: 7.531 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.6735, allocations: 11.98 kB / 0.8745 GB, free: 7.52 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.6735, allocations: 4 kB / 0.8745 GB, free: 7.516 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009741/0.6745, allocations: 0.6853 MB / 0.8752 GB, free: 6.801 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003597/0.6781, allocations: 2.589 MB / 0.8777 GB, free: 4.133 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.6781, allocations: 0 / 0.8777 GB, free: 4.133 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005317/0.6786, allocations: 131.8 kB / 0.8779 GB, free: 4.004 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.6787, allocations: 0 / 0.8779 GB, free: 4.004 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.18e-05/0.6787, allocations: 20.09 kB / 0.8779 GB, free: 3.984 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.6787, allocations: 4 kB / 0.8779 GB, free: 3.98 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.6787, allocations: 0 / 0.8779 GB, free: 3.98 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001953/0.6807, allocations: 1.317 MB / 0.8792 GB, free: 2.633 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006829/0.6814, allocations: 414 kB / 0.8796 GB, free: 2.207 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002268/0.6816, allocations: 12 kB / 0.8796 GB, free: 2.195 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009072/0.6825, allocations: 55.83 kB / 0.8796 GB, free: 2.141 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.035e-05/0.6826, allocations: 44.44 kB / 0.8797 GB, free: 2.098 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.106e-05/0.6827, allocations: 31.98 kB / 0.8797 GB, free: 2.066 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001993/0.6847, allocations: 1.569 MB / 0.8812 GB, free: 0.4922 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6847, allocations: 0 / 0.8812 GB, free: 0.4922 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002395/0.6871, allocations: 1.111 MB / 0.8823 GB, free: 15.38 MB / 0.6544 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.001493/0.6886, allocations: 0.7455 MB / 0.883 GB, free: 14.77 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002228/0.6908, allocations: 1.354 MB / 0.8844 GB, free: 13.42 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.6909, allocations: 4 kB / 0.8844 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0005068/0.6914, allocations: 320.6 kB / 0.8847 GB, free: 13.1 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004982/0.6964, allocations: 1.39 MB / 0.886 GB, free: 11.76 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005117/0.7015, allocations: 3.678 MB / 0.8896 GB, free: 8.039 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.7025, allocations: 1.597 MB / 0.8912 GB, free: 6.41 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001619/0.7042, allocations: 493.7 kB / 0.8916 GB, free: 5.93 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003517/0.7045, allocations: 179.4 kB / 0.8918 GB, free: 5.754 MB / 0.6544 GB Notification: Performance of SimCode: time 9.62e-07/0.7045, allocations: 0 / 0.8918 GB, free: 5.754 MB / 0.6544 GB Notification: Performance of Templates: time 0.06946/0.774, allocations: 44.45 MB / 0.9352 GB, free: 9.973 MB / 0.7012 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)