Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 105.5 kB / 16.27 MB, free: 6.41 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.001312/0.001312, allocations: 186.2 kB / 17.2 MB, free: 5.953 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.481/1.481, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8196/0.8196, allocations: 126.7 MB / 417.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002837/0.002837, allocations: 71.88 kB / 0.4958 GB, free: 2.805 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.406/0.4088, allocations: 78.85 MB / 0.5728 GB, free: 30.83 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02507/0.4339, allocations: 23.14 MB / 0.5954 GB, free: 12.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01069/0.4447, allocations: 6.421 MB / 0.6016 GB, free: 7.754 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001695/0.4464, allocations: 31.16 kB / 0.6017 GB, free: 7.738 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.4477, allocations: 392.4 kB / 0.602 GB, free: 7.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003332/0.4511, allocations: 1.089 MB / 0.6031 GB, free: 6.609 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002945/0.454, allocations: 1.066 MB / 0.6041 GB, free: 5.695 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002336/0.4564, allocations: 1.975 MB / 0.6061 GB, free: 3.715 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009153/0.4573, allocations: 0.7332 MB / 0.6068 GB, free: 2.973 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001539/0.4589, allocations: 0.8601 MB / 0.6076 GB, free: 2.109 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008451/0.4597, allocations: 0.6886 MB / 0.6083 GB, free: 1.418 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.4599, allocations: 72 kB / 0.6084 GB, free: 1.348 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00169/0.4616, allocations: 0.9944 MB / 0.6093 GB, free: 360 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001729/0.4617, allocations: 215.1 kB / 0.6095 GB, free: 144 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006228/0.4624, allocations: 489.3 kB / 0.61 GB, free: 15.66 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002457/0.4648, allocations: 1.468 MB / 0.6114 GB, free: 14.18 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4649, allocations: 0 / 0.6114 GB, free: 14.18 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4649, allocations: 0 / 0.6114 GB, free: 14.18 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.4649, allocations: 0 / 0.6114 GB, free: 14.18 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002572/0.4675, allocations: 1.395 MB / 0.6128 GB, free: 12.73 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.4675, allocations: 12.03 kB / 0.6128 GB, free: 12.71 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002526/0.4678, allocations: 115.6 kB / 0.6129 GB, free: 12.6 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.4689, allocations: 0.6596 MB / 0.6136 GB, free: 11.9 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.394e-05/0.469, allocations: 49.31 kB / 0.6136 GB, free: 11.85 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.4691, allocations: 60 kB / 0.6137 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.4703, allocations: 0.6663 MB / 0.6143 GB, free: 11.09 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.4703, allocations: 0 / 0.6143 GB, free: 11.09 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.719e-05/0.4704, allocations: 24 kB / 0.6144 GB, free: 11.06 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.4704, allocations: 15.98 kB / 0.6144 GB, free: 11.05 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000846/0.4712, allocations: 452.9 kB / 0.6148 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004123/0.4754, allocations: 2.541 MB / 0.6173 GB, free: 7.926 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007777/0.4762, allocations: 359.3 kB / 0.6176 GB, free: 7.566 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003598/0.4765, allocations: 189.4 kB / 0.6178 GB, free: 7.379 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003666/0.4769, allocations: 348.3 kB / 0.6181 GB, free: 6.965 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006379/0.4776, allocations: 321.1 kB / 0.6184 GB, free: 6.617 MB / 462.1 MB Notification: Performance of pre-optimization done (n=37): time 1.953e-06/0.4776, allocations: 0 / 0.6184 GB, free: 6.617 MB / 462.1 MB Notification: Performance of matching and sorting (n=37): time 0.001566/0.4792, allocations: 0.6862 MB / 0.6191 GB, free: 5.922 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001612/0.4793, allocations: 239.6 kB / 0.6193 GB, free: 5.633 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.4804, allocations: 0.8357 MB / 0.6202 GB, free: 4.773 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.563e-05/0.4805, allocations: 37.7 kB / 0.6202 GB, free: 4.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003988/0.4809, allocations: 428.4 kB / 0.6206 GB, free: 4.309 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.4811, allocations: 122.3 kB / 0.6207 GB, free: 4.188 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.4813, allocations: 134.1 kB / 0.6208 GB, free: 4.051 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.4814, allocations: 326 kB / 0.6212 GB, free: 3.727 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004462/0.4819, allocations: 215.1 kB / 0.6214 GB, free: 3.516 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005903/0.4825, allocations: 373.5 kB / 0.6217 GB, free: 3.09 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000917/0.4834, allocations: 0.53 MB / 0.6222 GB, free: 2.516 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.4834, allocations: 0 / 0.6222 GB, free: 2.516 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001501/0.4849, allocations: 0.7447 MB / 0.623 GB, free: 1.754 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.985e-05/0.485, allocations: 37.64 kB / 0.623 GB, free: 1.711 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.485, allocations: 4 kB / 0.623 GB, free: 1.707 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.715e-05/0.4851, allocations: 4 kB / 0.623 GB, free: 1.703 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.4862, allocations: 172.1 kB / 0.6232 GB, free: 1.535 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.4877, allocations: 1.778 MB / 0.6249 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007744/0.4885, allocations: 91.17 kB / 0.625 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.407e-05/0.4886, allocations: 31.97 kB / 0.625 GB, free: 15.57 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008027/0.4894, allocations: 374.1 kB / 0.6254 GB, free: 15.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005914/0.49, allocations: 382.2 kB / 0.6257 GB, free: 14.75 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00088/0.4909, allocations: 0.5347 MB / 0.6263 GB, free: 14.16 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.304e-06/0.4909, allocations: 0 / 0.6263 GB, free: 14.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization_lambda0): time 0.001421/0.4923, allocations: 0.727 MB / 0.627 GB, free: 13.42 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.746e-05/0.4924, allocations: 37.69 kB / 0.627 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.4924, allocations: 4 kB / 0.627 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.747e-06/0.4924, allocations: 4 kB / 0.627 GB, free: 13.37 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005207/0.4929, allocations: 127.8 kB / 0.6271 GB, free: 13.25 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.493, allocations: 11.94 kB / 0.6272 GB, free: 13.23 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007696/0.4937, allocations: 71.86 kB / 0.6272 GB, free: 13.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-05/0.4938, allocations: 31.98 kB / 0.6273 GB, free: 13.13 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 (mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003356/0.4942, allocations: 251.4 kB / 0.6275 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.4943, allocations: 94.81 kB / 0.6276 GB, free: 12.78 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001442/0.4958, allocations: 0.6691 MB / 0.6282 GB, free: 12.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.4958, allocations: 8 kB / 0.6282 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.4958, allocations: 4 kB / 0.6282 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4958, allocations: 7.922 kB / 0.6283 GB, free: 12.08 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/0.4982, allocations: 1.507 MB / 0.6297 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.4982, allocations: 128 / 0.6297 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004424/0.4987, allocations: 91.89 kB / 0.6298 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.4987, allocations: 96 / 0.6298 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-05/0.4987, allocations: 23.97 kB / 0.6298 GB, free: 10.39 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/0.4999, allocations: 1.77 MB / 0.6316 GB, free: 8.547 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4999, allocations: 7.969 kB / 0.6316 GB, free: 8.539 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001752/0.5017, allocations: 1.097 MB / 0.6326 GB, free: 7.41 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000394/0.5021, allocations: 207.9 kB / 0.6328 GB, free: 7.188 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.5022, allocations: 19.98 kB / 0.6329 GB, free: 7.168 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004591/0.5027, allocations: 27.97 kB / 0.6329 GB, free: 7.141 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.5029, allocations: 47.94 kB / 0.6329 GB, free: 7.094 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.5029, allocations: 23.98 kB / 0.633 GB, free: 7.07 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008521/0.5038, allocations: 0.5546 MB / 0.6335 GB, free: 6.504 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5038, allocations: 0 / 0.6335 GB, free: 6.504 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001515/0.5053, allocations: 455.2 kB / 0.6339 GB, free: 6.059 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008498/0.5061, allocations: 347 kB / 0.6343 GB, free: 5.727 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002555/0.5087, allocations: 1.051 MB / 0.6353 GB, free: 4.652 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.5087, allocations: 0 / 0.6353 GB, free: 4.652 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006867/0.5094, allocations: 343.1 kB / 0.6356 GB, free: 4.305 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/0.5111, allocations: 318.7 kB / 0.6359 GB, free: 4.004 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00285/0.514, allocations: 1.489 MB / 0.6374 GB, free: 2.477 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007294/0.5147, allocations: 0.9972 MB / 0.6383 GB, free: 1.449 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00066/0.5154, allocations: 152.2 kB / 0.6385 GB, free: 1.301 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.5156, allocations: 67.41 kB / 0.6386 GB, free: 1.234 MB / 478.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5156, allocations: 0 / 0.6386 GB, free: 1.234 MB / 478.1 MB Notification: Performance of Templates: time 0.0319/0.5475, allocations: 16.28 MB / 0.6545 GB, free: 1.168 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)