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.001719/0.001719, allocations: 109.8 kB / 16.41 MB, free: 6.465 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.001818/0.001818, allocations: 192.3 kB / 17.35 MB, free: 5.715 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002122/0.002122, allocations: 283.3 kB / 291.5 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.9604/0.9604, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 95.84 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5295/0.5313, allocations: 86.98 MB / 0.7671 GB, free: 3.781 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1198/0.6511, allocations: 112.6 MB / 0.8771 GB, free: 2.762 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.03078/0.682, allocations: 20.25 MB / 0.8968 GB, free: 14.47 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005811/0.6878, allocations: 103.4 kB / 0.8969 GB, free: 14.37 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004385/0.6923, allocations: 1.304 MB / 0.8982 GB, free: 13.06 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01145/0.7038, allocations: 3.881 MB / 0.902 GB, free: 9.164 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.008003/0.7118, allocations: 3.123 MB / 0.905 GB, free: 6.078 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01039/0.7222, allocations: 7.226 MB / 0.9121 GB, free: 14.83 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004743/0.7269, allocations: 2.568 MB / 0.9146 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007685/0.7346, allocations: 2.904 MB / 0.9174 GB, free: 9.293 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004608/0.7393, allocations: 2.124 MB / 0.9195 GB, free: 7.16 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.00101/0.7403, allocations: 256 kB / 0.9198 GB, free: 6.91 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00515/0.7454, allocations: 1.646 MB / 0.9214 GB, free: 5.262 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001426/0.7469, allocations: 0.6967 MB / 0.922 GB, free: 4.562 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.003697/0.7506, allocations: 1.512 MB / 0.9235 GB, free: 3.043 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.009144/0.7597, allocations: 4.403 MB / 0.9278 GB, free: 14.63 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.7598, allocations: 0 / 0.9278 GB, free: 14.63 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.004e-06/0.7598, allocations: 0 / 0.9278 GB, free: 14.63 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001859/0.76, allocations: 0 / 0.9278 GB, free: 14.63 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.009377/0.7694, allocations: 3.23 MB / 0.931 GB, free: 11.33 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.7694, allocations: 12.03 kB / 0.931 GB, free: 11.32 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001246/0.7707, allocations: 328.5 kB / 0.9313 GB, free: 10.99 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00447/0.7752, allocations: 2.197 MB / 0.9334 GB, free: 8.727 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.7753, allocations: 123 kB / 0.9336 GB, free: 8.605 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002476/0.7756, allocations: 172 kB / 0.9337 GB, free: 8.438 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002923/0.7785, allocations: 1.608 MB / 0.9353 GB, free: 6.766 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/0.7785, allocations: 11.91 kB / 0.9353 GB, free: 6.754 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.7787, allocations: 64 kB / 0.9354 GB, free: 6.691 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.577e-05/0.7787, allocations: 39.94 kB / 0.9354 GB, free: 6.652 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002138/0.7809, allocations: 1.143 MB / 0.9365 GB, free: 5.504 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.01178/0.7927, allocations: 7.916 MB / 0.9443 GB, free: 13.07 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008322/0.7935, allocations: 494.9 kB / 0.9447 GB, free: 12.58 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005964/0.7941, allocations: 319 kB / 0.945 GB, free: 12.27 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000846/0.795, allocations: 0.7563 MB / 0.9458 GB, free: 11.35 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001737/0.7952, allocations: 43.12 kB / 0.9458 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 3.407e-06/0.7952, allocations: 0 / 0.9458 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.002347/0.7975, allocations: 0.9881 MB / 0.9468 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.7976, allocations: 59.97 kB / 0.9468 GB, free: 10.23 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003483/0.8011, allocations: 2.339 MB / 0.9491 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001414/0.8012, allocations: 49.7 kB / 0.9492 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.8023, allocations: 1.145 MB / 0.9503 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.8026, allocations: 213 kB / 0.9505 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003638/0.8029, allocations: 254.6 kB / 0.9507 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0002115/0.8032, allocations: 353.9 kB / 0.9511 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007777/0.8039, allocations: 357.9 kB / 0.9514 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009643/0.8049, allocations: 0.7463 MB / 0.9521 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.8063, allocations: 0.9785 MB / 0.9531 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.8064, allocations: 0 / 0.9531 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002474/0.8088, allocations: 1.303 MB / 0.9544 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.8089, allocations: 8 kB / 0.9544 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.72e-05/0.809, allocations: 8 kB / 0.9544 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/0.809, allocations: 16 kB / 0.9544 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009886/0.81, allocations: 252.1 kB / 0.9546 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.243e-05/0.81, allocations: 19.94 kB / 0.9547 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.8115, allocations: 170.3 kB / 0.9548 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/0.8117, allocations: 47.98 kB / 0.9549 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001431/0.8131, allocations: 0.7665 MB / 0.9556 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009301/0.8141, allocations: 0.731 MB / 0.9563 GB, free: 24 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.3529/1.167, allocations: 0.944 MB / 0.9572 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.227e-06/1.167, allocations: 2.25 kB / 0.9573 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003126/1.17, allocations: 1.264 MB / 0.9585 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/1.17, allocations: 8.812 kB / 0.9585 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/1.17, allocations: 8.75 kB / 0.9585 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.5e-05/1.17, allocations: 15.06 kB / 0.9585 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009746/1.171, allocations: 246.1 kB / 0.9588 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.397e-05/1.171, allocations: 29 kB / 0.9588 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/1.173, allocations: 122.4 kB / 0.9589 GB, free: 180.4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-05/1.173, allocations: 49.8 kB / 0.9589 GB, free: 180.4 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.0002628/1.173, allocations: 254.4 kB / 0.9592 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003382/1.173, allocations: 239.8 kB / 0.9594 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/1.175, allocations: 0.8829 MB / 0.9603 GB, free: 179.9 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001007/1.176, allocations: 0.6893 MB / 0.9609 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/1.176, allocations: 0 / 0.9609 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007076/1.177, allocations: 419.4 kB / 0.9613 GB, free: 179.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002589/1.177, allocations: 15.08 kB / 0.9614 GB, free: 179.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009479/1.178, allocations: 41.75 kB / 0.9614 GB, free: 179.3 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/1.178, allocations: 42.41 kB / 0.9614 GB, free: 179.3 MB / 0.7169 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00139/1.18, allocations: 0.7794 MB / 0.9622 GB, free: 179 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001825/1.181, allocations: 1.398 MB / 0.9636 GB, free: 178.3 MB / 0.7169 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004683/1.182, allocations: 312.8 kB / 0.9639 GB, free: 178.1 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002118/1.184, allocations: 1.57 MB / 0.9654 GB, free: 177.5 MB / 0.7169 GB Notification: Performance of Backend: time 4.11e-07/1.184, allocations: 0 / 0.9654 GB, free: 177.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.004335/1.188, allocations: 2.037 MB / 0.9674 GB, free: 177 MB / 0.7169 GB Notification: Performance of SimCode: time 0.00804/1.197, allocations: 5.182 MB / 0.9725 GB, free: 174.6 MB / 0.7169 GB Notification: Performance of Templates: time 0.05803/1.255, allocations: 48.89 MB / 1.02 GB, free: 129.6 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)