Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 182.7 kB / 16.63 MB, free: 5.117 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4989/0.4989, allocations: 87.5 MB / 104.9 MB, free: 13.02 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 349.1 MB, free: 2.758 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009694/0.0009694, allocations: 101.7 kB / 420 MB, free: 8.508 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 51.91 kB / 0.4891 GB, free: 7.703 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3372, allocations: 70.06 MB / 0.5575 GB, free: 44.72 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02062/0.3579, allocations: 29.65 MB / 0.5865 GB, free: 15.46 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.009636/0.3676, allocations: 8.199 MB / 0.5945 GB, free: 7.246 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001432/0.3691, allocations: 31.75 kB / 0.5945 GB, free: 7.215 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.3703, allocations: 342 kB / 0.5948 GB, free: 6.879 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003107/0.3734, allocations: 1.237 MB / 0.596 GB, free: 5.641 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002378/0.3758, allocations: 1.021 MB / 0.597 GB, free: 4.629 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003284/0.3791, allocations: 4.223 MB / 0.6011 GB, free: 404 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00138/0.3805, allocations: 1.172 MB / 0.6023 GB, free: 15.2 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002284/0.3828, allocations: 1.538 MB / 0.6038 GB, free: 13.66 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002327/0.3851, allocations: 1.624 MB / 0.6054 GB, free: 12.04 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003182/0.3854, allocations: 68 kB / 0.6054 GB, free: 11.97 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001827/0.3873, allocations: 0.9475 MB / 0.6064 GB, free: 11.02 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004177/0.3877, allocations: 362.7 kB / 0.6067 GB, free: 10.66 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007893/0.3885, allocations: 0.692 MB / 0.6074 GB, free: 9.969 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002226/0.3907, allocations: 2.117 MB / 0.6095 GB, free: 7.848 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3908, allocations: 0 / 0.6095 GB, free: 7.848 MB / 426.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.3908, allocations: 0 / 0.6095 GB, free: 7.848 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.563e-05/0.3908, allocations: 0 / 0.6095 GB, free: 7.848 MB / 426.7 MB 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.002603/0.3934, allocations: 1.667 MB / 0.6111 GB, free: 6.125 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.3934, allocations: 19.97 kB / 0.6111 GB, free: 6.105 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003442/0.3938, allocations: 151.4 kB / 0.6112 GB, free: 5.957 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.3956, allocations: 0.8948 MB / 0.6121 GB, free: 5.008 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.951e-05/0.3956, allocations: 81.31 kB / 0.6122 GB, free: 4.926 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002014/0.3959, allocations: 116 kB / 0.6123 GB, free: 4.812 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.3969, allocations: 0.6395 MB / 0.6129 GB, free: 4.145 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.3969, allocations: 0 / 0.6129 GB, free: 4.145 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.838e-05/0.397, allocations: 24 kB / 0.613 GB, free: 4.121 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.397, allocations: 12 kB / 0.613 GB, free: 4.109 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008276/0.3978, allocations: 472.7 kB / 0.6134 GB, free: 3.648 MB / 426.7 MB 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.00454/0.4024, allocations: 2.86 MB / 0.6162 GB, free: 0.6328 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005926/0.403, allocations: 309.8 kB / 0.6165 GB, free: 332 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002829/0.4033, allocations: 145.3 kB / 0.6166 GB, free: 184 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002936/0.4036, allocations: 348.7 kB / 0.617 GB, free: 15.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.4036, allocations: 34.84 kB / 0.617 GB, free: 15.72 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 2.284e-06/0.4036, allocations: 0 / 0.617 GB, free: 15.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.001256/0.4049, allocations: 0.5341 MB / 0.6175 GB, free: 15.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.4049, allocations: 51.41 kB / 0.6176 GB, free: 15.12 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009737/0.4059, allocations: 0.9114 MB / 0.6185 GB, free: 14.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.406, allocations: 57.7 kB / 0.6185 GB, free: 14.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004305/0.4065, allocations: 0.5301 MB / 0.619 GB, free: 13.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.171e-05/0.4066, allocations: 118.3 kB / 0.6192 GB, free: 13.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004252/0.407, allocations: 287 kB / 0.6194 GB, free: 13.19 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.4071, allocations: 334.1 kB / 0.6198 GB, free: 12.86 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.4075, allocations: 197.4 kB / 0.6199 GB, free: 12.66 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.4088, allocations: 1.151 MB / 0.6211 GB, free: 11.15 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007535/0.4095, allocations: 467.3 kB / 0.6215 GB, free: 10.67 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4096, allocations: 0 / 0.6215 GB, free: 10.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001233/0.4108, allocations: 0.6501 MB / 0.6221 GB, free: 10.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.4108, allocations: 12.03 kB / 0.6222 GB, free: 10 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.4108, allocations: 0 / 0.6222 GB, free: 10 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.529e-05/0.4109, allocations: 4 kB / 0.6222 GB, free: 10 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/0.4122, allocations: 235.7 kB / 0.6224 GB, free: 9.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.4137, allocations: 2.958 MB / 0.6253 GB, free: 6.695 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003213/0.4169, allocations: 0.7144 MB / 0.626 GB, free: 5.977 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-05/0.417, allocations: 31.98 kB / 0.626 GB, free: 5.945 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006863/0.4177, allocations: 369.3 kB / 0.6264 GB, free: 5.582 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001207/0.4189, allocations: 1.158 MB / 0.6275 GB, free: 4.043 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007036/0.4196, allocations: 456.9 kB / 0.6279 GB, free: 3.562 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.037e-06/0.4196, allocations: 3.938 kB / 0.6279 GB, free: 3.559 MB / 442.7 MB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001314/0.421, allocations: 0.6586 MB / 0.6286 GB, free: 2.891 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.421, allocations: 4 kB / 0.6286 GB, free: 2.887 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.421, allocations: 4 kB / 0.6286 GB, free: 2.883 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.375e-06/0.421, allocations: 8 kB / 0.6286 GB, free: 2.875 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006194/0.4216, allocations: 152.1 kB / 0.6287 GB, free: 2.727 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.4217, allocations: 19.92 kB / 0.6287 GB, free: 2.707 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004152/0.4258, allocations: 0.9847 MB / 0.6297 GB, free: 1.719 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-05/0.4259, allocations: 20 kB / 0.6297 GB, free: 1.699 MB / 442.7 MB 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.0002711/0.4262, allocations: 249 kB / 0.63 GB, free: 1.449 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.4264, allocations: 94.78 kB / 0.6301 GB, free: 1.355 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/0.4275, allocations: 0.5163 MB / 0.6306 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.4275, allocations: 11.97 kB / 0.6306 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4275, allocations: 0 / 0.6306 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.4275, allocations: 0 / 0.6306 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.4294, allocations: 1.26 MB / 0.6318 GB, free: 15.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.4294, allocations: 3.938 kB / 0.6318 GB, free: 15.49 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004944/0.4299, allocations: 115.8 kB / 0.6319 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.4299, allocations: 4 kB / 0.6319 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.4299, allocations: 12.12 kB / 0.6319 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/0.4311, allocations: 2.942 MB / 0.6348 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4312, allocations: 3.938 kB / 0.6348 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.4326, allocations: 1.465 MB / 0.6362 GB, free: 10.76 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000288/0.4329, allocations: 215.8 kB / 0.6364 GB, free: 10.53 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.352e-05/0.433, allocations: 8 kB / 0.6365 GB, free: 10.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000485/0.4335, allocations: 63.78 kB / 0.6365 GB, free: 10.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.564e-05/0.4336, allocations: 31.81 kB / 0.6365 GB, free: 10.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.049e-05/0.4336, allocations: 16 kB / 0.6366 GB, free: 10.41 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006561/0.4343, allocations: 0.6045 MB / 0.6371 GB, free: 9.797 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4343, allocations: 0 / 0.6371 GB, free: 9.797 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001524/0.4358, allocations: 0.554 MB / 0.6377 GB, free: 9.242 MB / 458.7 MB 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.0006097/0.4364, allocations: 343.2 kB / 0.638 GB, free: 8.914 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002339/0.4388, allocations: 0.8472 MB / 0.6388 GB, free: 8.059 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4388, allocations: 0 / 0.6388 GB, free: 8.059 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005387/0.4393, allocations: 225.5 kB / 0.6391 GB, free: 7.84 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002458/0.4418, allocations: 483 kB / 0.6395 GB, free: 7.371 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.4443, allocations: 2.087 MB / 0.6416 GB, free: 5.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.4448, allocations: 1.041 MB / 0.6426 GB, free: 4.16 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.000885/0.4457, allocations: 211 kB / 0.6428 GB, free: 3.949 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.4459, allocations: 83.41 kB / 0.6429 GB, free: 3.867 MB / 458.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4459, allocations: 7.938 kB / 0.6429 GB, free: 3.859 MB / 458.7 MB Notification: Performance of Templates: time 0.03917/0.485, allocations: 25 MB / 0.6673 GB, free: 11.18 MB / 490.7 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)