Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001319/0.001319, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001649/0.001648, allocations: 189.1 kB / 16.25 MB, free: 6.633 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.443/1.443, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.818/2.818, allocations: 472.6 MB / 0.7448 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 70.25 kB / 0.9115 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3364, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02795/0.3644, allocations: 29.61 MB / 1.097 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01156/0.376, allocations: 8.101 MB / 1.105 GB, free: 4.918 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.3778, allocations: 31.75 kB / 1.105 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.3791, allocations: 369.9 kB / 1.105 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004045/0.3832, allocations: 1.267 MB / 1.106 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002804/0.3861, allocations: 1.03 MB / 1.107 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004821/0.3909, allocations: 3.54 MB / 1.111 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002006/0.3929, allocations: 1.318 MB / 1.112 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003131/0.3961, allocations: 1.71 MB / 1.114 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002579/0.3987, allocations: 1.651 MB / 1.115 GB, free: 9.973 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0003328/0.399, allocations: 124 kB / 1.115 GB, free: 9.852 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002131/0.4012, allocations: 1.022 MB / 1.116 GB, free: 8.828 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0004431/0.4016, allocations: 406.7 kB / 1.117 GB, free: 8.43 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001014/0.4026, allocations: 0.7505 MB / 1.117 GB, free: 7.676 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002822/0.4055, allocations: 2.181 MB / 1.12 GB, free: 5.488 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.4055, allocations: 0 / 1.12 GB, free: 5.488 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4055, allocations: 3.938 kB / 1.12 GB, free: 5.484 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.248e-05/0.4055, allocations: 0 / 1.12 GB, free: 5.484 MB / 0.8731 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.002798/0.4083, allocations: 1.667 MB / 1.121 GB, free: 3.766 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.4084, allocations: 12.03 kB / 1.121 GB, free: 3.754 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003644/0.4088, allocations: 147.4 kB / 1.121 GB, free: 3.609 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00152/0.4103, allocations: 0.8986 MB / 1.122 GB, free: 2.652 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.338e-05/0.4104, allocations: 85.31 kB / 1.122 GB, free: 2.57 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001922/0.4106, allocations: 116 kB / 1.122 GB, free: 2.457 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.4117, allocations: 0.6356 MB / 1.123 GB, free: 1.793 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.4117, allocations: 0 / 1.123 GB, free: 1.793 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.017e-05/0.4117, allocations: 28 kB / 1.123 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.4118, allocations: 16 kB / 1.123 GB, free: 1.75 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008706/0.4126, allocations: 460.8 kB / 1.123 GB, free: 1.297 MB / 0.8731 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.004371/0.417, allocations: 2.871 MB / 1.126 GB, free: 14.27 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000594/0.4176, allocations: 299.3 kB / 1.127 GB, free: 13.97 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002885/0.4179, allocations: 153.3 kB / 1.127 GB, free: 13.82 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003167/0.4183, allocations: 348.6 kB / 1.127 GB, free: 13.4 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.4183, allocations: 38.78 kB / 1.127 GB, free: 13.36 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=33): time 1.583e-06/0.4183, allocations: 0 / 1.127 GB, free: 13.36 MB / 0.8887 GB Notification: Performance of matching and sorting (n=33): time 0.001264/0.4196, allocations: 0.5252 MB / 1.128 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.4196, allocations: 59.41 kB / 1.128 GB, free: 12.75 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009867/0.4206, allocations: 0.9152 MB / 1.129 GB, free: 11.82 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001286/0.4207, allocations: 53.7 kB / 1.129 GB, free: 11.76 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004828/0.4212, allocations: 0.5418 MB / 1.129 GB, free: 11.21 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 8.027e-05/0.4213, allocations: 98.47 kB / 1.129 GB, free: 11.11 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004026/0.4217, allocations: 298.9 kB / 1.13 GB, free: 10.82 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4219, allocations: 334.1 kB / 1.13 GB, free: 10.48 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/0.4223, allocations: 189.4 kB / 1.13 GB, free: 10.3 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.4236, allocations: 1.151 MB / 1.131 GB, free: 8.781 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007909/0.4244, allocations: 463.4 kB / 1.132 GB, free: 8.305 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4244, allocations: 0 / 1.132 GB, free: 8.305 MB / 0.8887 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001308/0.4257, allocations: 0.6501 MB / 1.132 GB, free: 7.648 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.4257, allocations: 4 kB / 1.132 GB, free: 7.645 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.4257, allocations: 7.984 kB / 1.132 GB, free: 7.637 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.4258, allocations: 4.188 kB / 1.132 GB, free: 7.633 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.4273, allocations: 239.7 kB / 1.132 GB, free: 7.398 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00164/0.4289, allocations: 2.961 MB / 1.135 GB, free: 4.32 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00333/0.4323, allocations: 0.7299 MB / 1.136 GB, free: 3.59 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.421e-05/0.4323, allocations: 27.98 kB / 1.136 GB, free: 3.562 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000712/0.433, allocations: 369.3 kB / 1.136 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001343/0.4344, allocations: 1.154 MB / 1.138 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007495/0.4352, allocations: 456.9 kB / 1.138 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.198e-06/0.4352, allocations: 3.938 kB / 1.138 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001348/0.4365, allocations: 0.6511 MB / 1.139 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.4366, allocations: 7.938 kB / 1.139 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.4366, allocations: 4 kB / 1.139 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.841e-06/0.4366, allocations: 4 kB / 1.139 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006938/0.4373, allocations: 159.8 kB / 1.139 GB, free: 352 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.4373, allocations: 11.94 kB / 1.139 GB, free: 340 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004345/0.4416, allocations: 0.9848 MB / 1.14 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.839e-05/0.4417, allocations: 27.98 kB / 1.14 GB, free: 15.32 MB / 0.9044 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 (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002636/0.442, allocations: 241.1 kB / 1.14 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.4421, allocations: 94.78 kB / 1.14 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.4433, allocations: 0.5128 MB / 1.141 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.4433, allocations: 4 kB / 1.141 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.4433, allocations: 7.984 kB / 1.141 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.4434, allocations: 3.984 kB / 1.141 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/0.4453, allocations: 1.254 MB / 1.142 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.4453, allocations: 11.98 kB / 1.142 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005327/0.4459, allocations: 123.7 kB / 1.142 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.4459, allocations: 0 / 1.142 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/0.4459, allocations: 15.98 kB / 1.142 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/0.4474, allocations: 2.942 MB / 1.145 GB, free: 9.922 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.4474, allocations: 3.938 kB / 1.145 GB, free: 9.918 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008597/0.4483, allocations: 0.558 MB / 1.145 GB, free: 9.332 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.4486, allocations: 215.7 kB / 1.146 GB, free: 9.102 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4487, allocations: 8 kB / 1.146 GB, free: 9.094 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005335/0.4492, allocations: 63.77 kB / 1.146 GB, free: 9.031 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.142e-05/0.4493, allocations: 31.84 kB / 1.146 GB, free: 9 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.4493, allocations: 20 kB / 1.146 GB, free: 8.98 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0007133/0.4501, allocations: 0.6045 MB / 1.146 GB, free: 8.367 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4501, allocations: 0 / 1.146 GB, free: 8.367 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001412/0.4515, allocations: 0.5343 MB / 1.147 GB, free: 7.832 MB / 0.9044 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 (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006987/0.4522, allocations: 327.6 kB / 1.147 GB, free: 7.512 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002633/0.4548, allocations: 0.8743 MB / 1.148 GB, free: 6.641 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.4549, allocations: 0 / 1.148 GB, free: 6.641 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005644/0.4554, allocations: 227.7 kB / 1.148 GB, free: 6.418 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.4573, allocations: 398.5 kB / 1.149 GB, free: 6.035 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.4599, allocations: 1.865 MB / 1.15 GB, free: 4.129 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000588/0.4605, allocations: 1.025 MB / 1.151 GB, free: 3.074 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0009822/0.4615, allocations: 202.9 kB / 1.152 GB, free: 2.871 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.4617, allocations: 83.41 kB / 1.152 GB, free: 2.789 MB / 0.9044 GB Notification: Performance of SimCode: time 5.01e-07/0.4617, allocations: 0 / 1.152 GB, free: 2.789 MB / 0.9044 GB Notification: Performance of Templates: time 0.04288/0.5046, allocations: 24.77 MB / 1.176 GB, free: 10.47 MB / 0.9356 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)