Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.184/2.184, allocations: 391.2 MB / 407 MB, free: 10.85 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 194.2 kB / 499.1 MB, free: 4.668 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 222.9 MB / 0.7948 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 103.7 kB / 0.9329 GB, free: 7.062 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001093, allocations: 48.86 kB / 1.081 GB, free: 218.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.333, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02498/0.358, allocations: 29.63 MB / 1.247 GB, free: 87.46 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.01001/0.3681, allocations: 8.221 MB / 1.255 GB, free: 79.21 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001699/0.3699, allocations: 23.81 kB / 1.255 GB, free: 79.19 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.3713, allocations: 349.9 kB / 1.255 GB, free: 78.85 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.003633/0.3749, allocations: 1.24 MB / 1.257 GB, free: 77.61 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.002586/0.3775, allocations: 1.026 MB / 1.258 GB, free: 76.59 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.003678/0.3812, allocations: 4.223 MB / 1.262 GB, free: 72.36 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001453/0.3827, allocations: 1.182 MB / 1.263 GB, free: 71.16 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002345/0.385, allocations: 1.526 MB / 1.264 GB, free: 69.63 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.3872, allocations: 1.624 MB / 1.266 GB, free: 68 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 0.0003509/0.3876, allocations: 72 kB / 1.266 GB, free: 67.93 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002178/0.3897, allocations: 0.9436 MB / 1.267 GB, free: 66.98 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.0003941/0.3901, allocations: 354.7 kB / 1.267 GB, free: 66.64 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0008537/0.391, allocations: 0.692 MB / 1.268 GB, free: 65.94 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.002141/0.3932, allocations: 2.131 MB / 1.27 GB, free: 63.8 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3932, allocations: 4 kB / 1.27 GB, free: 63.8 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.002e-06/0.3932, allocations: 0 / 1.27 GB, free: 63.8 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.416e-05/0.3932, allocations: 0 / 1.27 GB, free: 63.8 MB / 0.823 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.002459/0.3957, allocations: 1.659 MB / 1.272 GB, free: 62.09 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.3957, allocations: 11.98 kB / 1.272 GB, free: 62.07 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003435/0.3961, allocations: 151.3 kB / 1.272 GB, free: 61.93 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.3978, allocations: 0.9065 MB / 1.273 GB, free: 60.96 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.46e-05/0.3978, allocations: 81.25 kB / 1.273 GB, free: 60.88 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001766/0.398, allocations: 120 kB / 1.273 GB, free: 60.77 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009255/0.399, allocations: 0.6395 MB / 1.274 GB, free: 60.1 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.399, allocations: 0 / 1.274 GB, free: 60.1 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.375e-05/0.399, allocations: 23.98 kB / 1.274 GB, free: 60.07 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.3991, allocations: 16 kB / 1.274 GB, free: 60.06 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007267/0.3998, allocations: 464.8 kB / 1.274 GB, free: 59.6 MB / 0.823 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.003858/0.4037, allocations: 2.864 MB / 1.277 GB, free: 56.58 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004988/0.4042, allocations: 313.6 kB / 1.277 GB, free: 56.27 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/0.4044, allocations: 153.3 kB / 1.277 GB, free: 56.12 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002386/0.4047, allocations: 344.7 kB / 1.278 GB, free: 55.71 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.4047, allocations: 34.78 kB / 1.278 GB, free: 55.66 MB / 0.823 GB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/0.4047, allocations: 0 / 1.278 GB, free: 55.66 MB / 0.823 GB Notification: Performance of matching and sorting (n=33): time 0.001109/0.4058, allocations: 0.533 MB / 1.278 GB, free: 55.12 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.821e-05/0.4059, allocations: 55.41 kB / 1.278 GB, free: 55.06 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007674/0.4066, allocations: 0.9075 MB / 1.279 GB, free: 54.13 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 8.982e-05/0.4067, allocations: 61.7 kB / 1.279 GB, free: 54.07 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003494/0.4071, allocations: 0.5225 MB / 1.28 GB, free: 53.54 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 6.818e-05/0.4072, allocations: 114.4 kB / 1.28 GB, free: 53.43 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003524/0.4075, allocations: 290.9 kB / 1.28 GB, free: 53.14 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 6.526e-05/0.4076, allocations: 334.1 kB / 1.28 GB, free: 52.81 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003419/0.408, allocations: 197.4 kB / 1.281 GB, free: 52.61 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.409, allocations: 1.155 MB / 1.282 GB, free: 51.09 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006955/0.4097, allocations: 455.4 kB / 1.282 GB, free: 50.62 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.4097, allocations: 0 / 1.282 GB, free: 50.62 MB / 0.823 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001117/0.4108, allocations: 0.6501 MB / 1.283 GB, free: 49.96 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.4108, allocations: 4 kB / 1.283 GB, free: 49.95 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.4109, allocations: 12.12 kB / 1.283 GB, free: 49.94 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.252e-05/0.4109, allocations: 4.094 kB / 1.283 GB, free: 49.94 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.4122, allocations: 231.6 kB / 1.283 GB, free: 49.71 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.4132, allocations: 2.961 MB / 1.286 GB, free: 46.63 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003126/0.4164, allocations: 0.7221 MB / 1.287 GB, free: 45.91 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.761e-05/0.4164, allocations: 31.97 kB / 1.287 GB, free: 45.88 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006631/0.4171, allocations: 367.1 kB / 1.287 GB, free: 45.52 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009498/0.4181, allocations: 1.166 MB / 1.288 GB, free: 43.97 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006133/0.4187, allocations: 452.9 kB / 1.289 GB, free: 43.49 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.366e-06/0.4187, allocations: 7.938 kB / 1.289 GB, free: 43.48 MB / 0.823 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001236/0.42, allocations: 0.6471 MB / 1.289 GB, free: 42.83 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.42, allocations: 8 kB / 1.289 GB, free: 42.82 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.42, allocations: 4 kB / 1.289 GB, free: 42.82 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.611e-06/0.42, allocations: 4 kB / 1.289 GB, free: 42.81 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005962/0.4206, allocations: 155.8 kB / 1.289 GB, free: 42.66 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.4206, allocations: 7.984 kB / 1.289 GB, free: 42.65 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004121/0.4248, allocations: 0.9966 MB / 1.29 GB, free: 41.65 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.904e-05/0.4248, allocations: 27.94 kB / 1.29 GB, free: 41.62 MB / 0.823 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.0002569/0.4251, allocations: 241.8 kB / 1.291 GB, free: 41.38 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.4253, allocations: 98.72 kB / 1.291 GB, free: 41.29 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.4263, allocations: 0.501 MB / 1.291 GB, free: 40.78 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.4263, allocations: 7.984 kB / 1.291 GB, free: 40.77 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4264, allocations: 0 / 1.291 GB, free: 40.77 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.4264, allocations: 0 / 1.291 GB, free: 40.77 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001857/0.4282, allocations: 1.264 MB / 1.292 GB, free: 39.44 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.4283, allocations: 4 kB / 1.292 GB, free: 39.44 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004929/0.4287, allocations: 119.8 kB / 1.293 GB, free: 39.32 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.201e-06/0.4288, allocations: 0 / 1.293 GB, free: 39.32 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.4288, allocations: 16 kB / 1.293 GB, free: 39.3 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008825/0.4297, allocations: 2.938 MB / 1.295 GB, free: 36.25 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.4297, allocations: 7.969 kB / 1.295 GB, free: 36.24 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.4311, allocations: 1.455 MB / 1.297 GB, free: 34.72 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000315/0.4314, allocations: 219.8 kB / 1.297 GB, free: 34.48 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.4315, allocations: 11.94 kB / 1.297 GB, free: 34.47 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005747/0.4321, allocations: 67.77 kB / 1.297 GB, free: 34.41 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.155e-05/0.4322, allocations: 23.97 kB / 1.297 GB, free: 34.38 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.4322, allocations: 19.98 kB / 1.297 GB, free: 34.36 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0006184/0.4329, allocations: 0.6045 MB / 1.298 GB, free: 33.75 MB / 0.823 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4329, allocations: 0 / 1.298 GB, free: 33.75 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001851/0.4347, allocations: 0.5463 MB / 1.298 GB, free: 33.2 MB / 0.823 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.0008564/0.4356, allocations: 331.5 kB / 1.299 GB, free: 32.88 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.002643/0.4383, allocations: 0.8428 MB / 1.299 GB, free: 32.04 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4383, allocations: 0 / 1.299 GB, free: 32.04 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005343/0.4388, allocations: 236.8 kB / 1.3 GB, free: 31.81 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002698/0.4415, allocations: 477.3 kB / 1.3 GB, free: 31.34 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002725/0.4443, allocations: 2.115 MB / 1.302 GB, free: 29.17 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004354/0.4447, allocations: 1.037 MB / 1.303 GB, free: 28.1 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.001159/0.4459, allocations: 211 kB / 1.303 GB, free: 27.89 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.4461, allocations: 83.41 kB / 1.303 GB, free: 27.81 MB / 0.823 GB Notification: Performance of SimCode: time 9.21e-07/0.4461, allocations: 0 / 1.303 GB, free: 27.81 MB / 0.823 GB Notification: Performance of Templates: time 0.03648/0.4826, allocations: 25.01 MB / 1.328 GB, free: 3.184 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)