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.001387/0.001387, allocations: 113.2 kB / 16.41 MB, free: 6.492 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.001484/0.001484, allocations: 183 kB / 17.34 MB, free: 5.762 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.303/1.303, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002078/0.002078, allocations: 278.7 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9207/0.9207, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 92.27 kB / 0.6821 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.509/0.5109, allocations: 86.98 MB / 0.767 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1146/0.6256, allocations: 112.6 MB / 0.877 GB, free: 2.898 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03216/0.6578, allocations: 20.25 MB / 0.8968 GB, free: 14.6 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004934/0.6628, allocations: 103.4 kB / 0.8969 GB, free: 14.5 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004357/0.6672, allocations: 1.281 MB / 0.8982 GB, free: 13.21 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01136/0.6786, allocations: 3.685 MB / 0.9018 GB, free: 9.512 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.008384/0.687, allocations: 3.115 MB / 0.9048 GB, free: 6.434 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01141/0.6984, allocations: 7.218 MB / 0.9119 GB, free: 15.2 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004779/0.7032, allocations: 2.576 MB / 0.9144 GB, free: 12.56 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007669/0.7109, allocations: 2.889 MB / 0.9172 GB, free: 9.668 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004499/0.7154, allocations: 2.124 MB / 0.9193 GB, free: 7.535 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001105/0.7165, allocations: 256 kB / 0.9195 GB, free: 7.285 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004973/0.7215, allocations: 1.642 MB / 0.9211 GB, free: 5.641 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001349/0.7229, allocations: 0.6928 MB / 0.9218 GB, free: 4.945 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003367/0.7263, allocations: 1.52 MB / 0.9233 GB, free: 3.418 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.007958/0.7342, allocations: 4.407 MB / 0.9276 GB, free: 15 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.7343, allocations: 4 kB / 0.9276 GB, free: 15 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.214e-06/0.7343, allocations: 0 / 0.9276 GB, free: 15 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001538/0.7344, allocations: 0 / 0.9276 GB, free: 15 MB / 0.7012 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.007385/0.7418, allocations: 3.23 MB / 0.9307 GB, free: 11.7 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.7419, allocations: 8.031 kB / 0.9307 GB, free: 11.69 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001116/0.743, allocations: 328.6 kB / 0.9311 GB, free: 11.36 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004436/0.7475, allocations: 2.198 MB / 0.9332 GB, free: 9.094 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.7476, allocations: 127 kB / 0.9333 GB, free: 8.969 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003174/0.7479, allocations: 164 kB / 0.9335 GB, free: 8.809 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002665/0.7506, allocations: 1.608 MB / 0.935 GB, free: 7.137 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.719e-05/0.7506, allocations: 3.906 kB / 0.9351 GB, free: 7.133 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001337/0.7508, allocations: 64 kB / 0.9351 GB, free: 7.07 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.395e-05/0.7508, allocations: 51.92 kB / 0.9352 GB, free: 7.02 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001985/0.7528, allocations: 1.147 MB / 0.9363 GB, free: 5.867 MB / 0.7012 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.01136/0.7642, allocations: 7.912 MB / 0.944 GB, free: 13.44 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000956/0.7652, allocations: 482.9 kB / 0.9445 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005366/0.7657, allocations: 327 kB / 0.9448 GB, free: 12.64 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000602/0.7663, allocations: 0.7524 MB / 0.9455 GB, free: 11.72 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.7664, allocations: 43.12 kB / 0.9456 GB, free: 11.67 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 1.863e-06/0.7664, allocations: 0 / 0.9456 GB, free: 11.67 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.00213/0.7685, allocations: 0.9881 MB / 0.9465 GB, free: 10.68 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.7686, allocations: 59.97 kB / 0.9466 GB, free: 10.61 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003423/0.772, allocations: 2.339 MB / 0.9489 GB, free: 8.254 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.7722, allocations: 45.7 kB / 0.9489 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001042/0.7732, allocations: 1.153 MB / 0.95 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.7734, allocations: 208.9 kB / 0.9502 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003897/0.7738, allocations: 262.6 kB / 0.9505 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.774, allocations: 345.9 kB / 0.9508 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007071/0.7747, allocations: 361.9 kB / 0.9512 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001157/0.7758, allocations: 0.7452 MB / 0.9519 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.7773, allocations: 0.9824 MB / 0.9528 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.7773, allocations: 4 kB / 0.9529 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002491/0.7798, allocations: 1.295 MB / 0.9541 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.7799, allocations: 8 kB / 0.9541 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.889e-05/0.7799, allocations: 8 kB / 0.9541 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/0.7799, allocations: 12 kB / 0.9541 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009592/0.7809, allocations: 259.6 kB / 0.9544 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.748e-05/0.7809, allocations: 15.94 kB / 0.9544 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/0.7824, allocations: 162.6 kB / 0.9546 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.235e-05/0.7825, allocations: 55.98 kB / 0.9546 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001276/0.7838, allocations: 0.7625 MB / 0.9554 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009121/0.7847, allocations: 0.7388 MB / 0.9561 GB, free: 404 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.3489/1.134, allocations: 0.9451 MB / 0.957 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.328e-05/1.134, allocations: 2.156 kB / 0.957 GB, free: 180.7 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003347/1.137, allocations: 1.26 MB / 0.9582 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/1.137, allocations: 12.81 kB / 0.9582 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/1.137, allocations: 12.69 kB / 0.9583 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/1.137, allocations: 16.8 kB / 0.9583 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/1.138, allocations: 249.6 kB / 0.9585 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.997e-05/1.138, allocations: 21.31 kB / 0.9585 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/1.14, allocations: 116.1 kB / 0.9586 GB, free: 180.6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/1.14, allocations: 57.39 kB / 0.9587 GB, free: 180.6 MB / 0.7169 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.0003184/1.141, allocations: 250.2 kB / 0.9589 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004216/1.141, allocations: 236.1 kB / 0.9592 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/1.143, allocations: 0.8885 MB / 0.96 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/1.143, allocations: 6.844 kB / 0.96 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/1.143, allocations: 1.031 kB / 0.96 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00104/1.144, allocations: 0.6804 MB / 0.9607 GB, free: 179.8 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004861/1.149, allocations: 2.586 MB / 0.9632 GB, free: 178.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/1.149, allocations: 1.375 kB / 0.9632 GB, free: 178.6 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005599/1.149, allocations: 124.3 kB / 0.9633 GB, free: 178.6 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/1.149, allocations: 8.219 kB / 0.9634 GB, free: 178.6 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/1.15, allocations: 16.42 kB / 0.9634 GB, free: 178.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/1.15, allocations: 7.375 kB / 0.9634 GB, free: 178.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/1.15, allocations: 5.328 kB / 0.9634 GB, free: 178.5 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/1.151, allocations: 1.309 MB / 0.9647 GB, free: 177.9 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006486/1.152, allocations: 419.6 kB / 0.9651 GB, free: 177.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002146/1.152, allocations: 20.67 kB / 0.9651 GB, free: 177.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009108/1.153, allocations: 48.59 kB / 0.9651 GB, free: 177.6 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.745e-05/1.153, allocations: 44.27 kB / 0.9652 GB, free: 177.6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.265e-05/1.153, allocations: 36.56 kB / 0.9652 GB, free: 177.6 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002033/1.155, allocations: 1.563 MB / 0.9667 GB, free: 177 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.41e-07/1.155, allocations: 7.812 kB / 0.9667 GB, free: 177 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00241/1.158, allocations: 1.108 MB / 0.9678 GB, free: 176.9 MB / 0.7169 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.001416/1.159, allocations: 0.7527 MB / 0.9686 GB, free: 176.8 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002128/1.161, allocations: 1.357 MB / 0.9699 GB, free: 176.3 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/1.161, allocations: 0 / 0.9699 GB, free: 176.3 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004433/1.162, allocations: 325.7 kB / 0.9702 GB, free: 176.2 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004841/1.167, allocations: 1.397 MB / 0.9716 GB, free: 175.8 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004609/1.171, allocations: 3.738 MB / 0.9752 GB, free: 174 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007926/1.172, allocations: 1.583 MB / 0.9768 GB, free: 173.1 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004629/1.173, allocations: 183.9 kB / 0.9769 GB, free: 173 MB / 0.7169 GB Notification: Performance of SimCode: time 1.282e-06/1.173, allocations: 0 / 0.9769 GB, free: 173 MB / 0.7169 GB Notification: Performance of Templates: time 0.042/1.215, allocations: 39.86 MB / 1.016 GB, free: 133.8 MB / 0.7169 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)