Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001044/0.001044, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.01068/0.01068, allocations: 168.9 kB / 16.26 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.814/1.814, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.776/1.776, allocations: 292.7 MB / 0.5502 GB, free: 14.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005556/0.0005556, allocations: 17.44 kB / 0.6743 GB, free: 25.65 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3041, allocations: 116.3 MB / 0.7879 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02474/0.3289, allocations: 22.75 MB / 0.8101 GB, free: 4.723 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01829/0.3473, allocations: 9.95 MB / 0.8198 GB, free: 10.75 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002015/0.3493, allocations: 31.69 kB / 0.8198 GB, free: 10.72 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001855/0.3512, allocations: 322.2 kB / 0.8202 GB, free: 10.4 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.005334/0.3566, allocations: 0.9949 MB / 0.8211 GB, free: 9.406 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.00402/0.3606, allocations: 0.9581 MB / 0.8221 GB, free: 8.457 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.004244/0.3649, allocations: 2.476 MB / 0.8245 GB, free: 5.969 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.3664, allocations: 0.626 MB / 0.8251 GB, free: 5.332 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002269/0.3687, allocations: 0.7195 MB / 0.8258 GB, free: 4.609 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001927/0.3706, allocations: 0.6728 MB / 0.8265 GB, free: 3.934 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003152/0.371, allocations: 36 kB / 0.8265 GB, free: 3.898 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002738/0.3737, allocations: 0.9397 MB / 0.8274 GB, free: 2.957 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0004248/0.3742, allocations: 171.1 kB / 0.8276 GB, free: 2.789 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0009835/0.3751, allocations: 470.9 kB / 0.828 GB, free: 2.32 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.003252/0.3784, allocations: 1.413 MB / 0.8294 GB, free: 0.9023 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3784, allocations: 0 / 0.8294 GB, free: 0.9023 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3784, allocations: 0 / 0.8294 GB, free: 0.9023 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 5.893e-05/0.3785, allocations: 0 / 0.8294 GB, free: 0.9023 MB / 0.6387 GB 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.00261/0.3811, allocations: 1.228 MB / 0.8306 GB, free: 15.61 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.3812, allocations: 16.02 kB / 0.8306 GB, free: 15.6 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.3814, allocations: 115.6 kB / 0.8307 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.3824, allocations: 0.6752 MB / 0.8314 GB, free: 14.77 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.285e-05/0.3825, allocations: 49.31 kB / 0.8314 GB, free: 14.72 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.3826, allocations: 63.94 kB / 0.8315 GB, free: 14.66 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.3837, allocations: 0.6624 MB / 0.8321 GB, free: 13.96 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.3838, allocations: 7.938 kB / 0.8321 GB, free: 13.95 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.286e-05/0.3838, allocations: 20 kB / 0.8322 GB, free: 13.93 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.3838, allocations: 16 kB / 0.8322 GB, free: 13.91 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007933/0.3846, allocations: 464.9 kB / 0.8326 GB, free: 13.46 MB / 0.6544 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.003525/0.3882, allocations: 2.53 MB / 0.8351 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007364/0.3889, allocations: 370.7 kB / 0.8354 GB, free: 10.42 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/0.3893, allocations: 192.8 kB / 0.8356 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003538/0.3896, allocations: 352.3 kB / 0.836 GB, free: 9.812 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005806/0.3902, allocations: 333.1 kB / 0.8363 GB, free: 9.453 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=37): time 1.963e-06/0.3902, allocations: 0 / 0.8363 GB, free: 9.453 MB / 0.6544 GB Notification: Performance of matching and sorting (n=37): time 0.001394/0.3916, allocations: 0.7031 MB / 0.837 GB, free: 8.738 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.3918, allocations: 235.3 kB / 0.8372 GB, free: 8.453 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009858/0.3928, allocations: 0.8398 MB / 0.838 GB, free: 7.59 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.224e-05/0.3928, allocations: 41.7 kB / 0.8381 GB, free: 7.543 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003596/0.3932, allocations: 429 kB / 0.8385 GB, free: 7.117 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.3933, allocations: 122.6 kB / 0.8386 GB, free: 6.996 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.751e-05/0.3934, allocations: 57.69 kB / 0.8386 GB, free: 6.934 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.3936, allocations: 337.9 kB / 0.839 GB, free: 6.598 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004019/0.394, allocations: 205.1 kB / 0.8392 GB, free: 6.395 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005181/0.3945, allocations: 379.6 kB / 0.8395 GB, free: 5.965 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008266/0.3953, allocations: 0.534 MB / 0.84 GB, free: 5.383 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3954, allocations: 4 kB / 0.84 GB, free: 5.379 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001249/0.3966, allocations: 0.7528 MB / 0.8408 GB, free: 4.613 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001463/0.3968, allocations: 210.1 kB / 0.841 GB, free: 4.363 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.3968, allocations: 0 / 0.841 GB, free: 4.363 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.3968, allocations: 8 kB / 0.841 GB, free: 4.355 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.3978, allocations: 183.7 kB / 0.8412 GB, free: 4.176 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.3989, allocations: 1.782 MB / 0.8429 GB, free: 2.324 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007583/0.3997, allocations: 111.2 kB / 0.843 GB, free: 2.215 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.094e-05/0.3998, allocations: 27.98 kB / 0.843 GB, free: 2.188 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/0.3998, allocations: 4 kB / 0.843 GB, free: 2.184 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001111/0.4009, allocations: 0.6426 MB / 0.8437 GB, free: 1.531 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.4009, allocations: 3.938 kB / 0.8437 GB, free: 1.527 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.401, allocations: 8 kB / 0.8437 GB, free: 1.52 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.4015, allocations: 127.8 kB / 0.8438 GB, free: 1.395 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.4015, allocations: 12.25 kB / 0.8438 GB, free: 1.383 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006591/0.4021, allocations: 99.38 kB / 0.8439 GB, free: 1.285 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.764e-05/0.4022, allocations: 27.98 kB / 0.8439 GB, free: 1.258 MB / 0.6544 GB 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.0004951/0.4027, allocations: 346.6 kB / 0.8443 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.4028, allocations: 94.81 kB / 0.8443 GB, free: 0.8086 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.4041, allocations: 0.6829 MB / 0.845 GB, free: 112 kB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.4041, allocations: 8 kB / 0.845 GB, free: 104 kB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.4041, allocations: 0 / 0.845 GB, free: 104 kB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.4041, allocations: 3.984 kB / 0.845 GB, free: 100 kB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002185/0.4063, allocations: 1.523 MB / 0.8465 GB, free: 14.5 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/0.4063, allocations: 3.938 kB / 0.8465 GB, free: 14.5 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003928/0.4067, allocations: 95.86 kB / 0.8466 GB, free: 14.41 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.4068, allocations: 0 / 0.8466 GB, free: 14.41 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-05/0.4068, allocations: 16 kB / 0.8466 GB, free: 14.39 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009547/0.4078, allocations: 1.766 MB / 0.8483 GB, free: 12.55 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4078, allocations: 4.062 kB / 0.8484 GB, free: 12.55 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.4093, allocations: 1.132 MB / 0.8495 GB, free: 11.39 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003143/0.4096, allocations: 223.8 kB / 0.8497 GB, free: 11.15 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.4097, allocations: 12 kB / 0.8497 GB, free: 11.14 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005448/0.4103, allocations: 59.95 kB / 0.8497 GB, free: 11.08 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.4104, allocations: 43.86 kB / 0.8498 GB, free: 11.04 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.411e-05/0.4105, allocations: 20 kB / 0.8498 GB, free: 11.02 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0007013/0.4112, allocations: 0.5706 MB / 0.8504 GB, free: 10.44 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4112, allocations: 0 / 0.8504 GB, free: 10.44 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001438/0.4126, allocations: 451.2 kB / 0.8508 GB, free: 9.996 MB / 0.67 GB 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.0008445/0.4135, allocations: 347 kB / 0.8511 GB, free: 9.66 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002333/0.4158, allocations: 1.044 MB / 0.8521 GB, free: 8.594 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4158, allocations: 0 / 0.8521 GB, free: 8.594 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.000684/0.4165, allocations: 352 kB / 0.8525 GB, free: 8.238 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002772/0.4193, allocations: 373 kB / 0.8528 GB, free: 7.879 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004129/0.4235, allocations: 1.808 MB / 0.8546 GB, free: 6.027 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000853/0.4244, allocations: 0.9934 MB / 0.8556 GB, free: 5.008 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0009539/0.4253, allocations: 162.2 kB / 0.8557 GB, free: 4.848 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.4255, allocations: 63.42 kB / 0.8558 GB, free: 4.785 MB / 0.67 GB Notification: Performance of SimCode: time 1.032e-06/0.4255, allocations: 3.938 kB / 0.8558 GB, free: 4.781 MB / 0.67 GB Notification: Performance of Templates: time 0.03302/0.4586, allocations: 16.01 MB / 0.8714 GB, free: 4.973 MB / 0.6856 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) Environment - environmentSimulation: