Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.747/2.747, allocations: 287.5 MB / 302.4 MB, free: 8.18 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001399/0.001399, allocations: 183.5 kB / 371 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.224/2.224, allocations: 205.4 MB / 0.6297 GB, free: 10.53 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009795/0.0009792, allocations: 89.58 kB / 0.743 GB, free: 6.523 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007436/0.0007437, allocations: 16.22 kB / 0.8658 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2516, allocations: 115.3 MB / 0.9784 GB, free: 28.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02783/0.2795, allocations: 21.56 MB / 0.9994 GB, free: 6.707 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01867/0.2983, allocations: 9.112 MB / 1.008 GB, free: 13.58 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001535/0.2999, allocations: 31.69 kB / 1.008 GB, free: 13.55 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.001512/0.3014, allocations: 298.2 kB / 1.009 GB, free: 13.26 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.004066/0.3055, allocations: 0.8687 MB / 1.009 GB, free: 12.39 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0042/0.3097, allocations: 0.8927 MB / 1.01 GB, free: 11.5 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.004278/0.314, allocations: 2.144 MB / 1.012 GB, free: 9.355 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001514/0.3156, allocations: 0.5688 MB / 1.013 GB, free: 8.77 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002375/0.318, allocations: 0.6885 MB / 1.014 GB, free: 8.078 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001887/0.32, allocations: 0.634 MB / 1.014 GB, free: 7.441 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.000332/0.3204, allocations: 32 kB / 1.014 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003021/0.3234, allocations: 0.8656 MB / 1.015 GB, free: 6.543 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0004756/0.3239, allocations: 171.2 kB / 1.015 GB, free: 6.375 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0005026/0.3244, allocations: 193.2 kB / 1.016 GB, free: 6.18 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.002668/0.3271, allocations: 1.013 MB / 1.017 GB, free: 5.164 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3272, allocations: 7.875 kB / 1.017 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.105e-06/0.3272, allocations: 0 / 1.017 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.036e-05/0.3272, allocations: 4 kB / 1.017 GB, free: 5.152 MB / 0.6355 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.003557/0.3308, allocations: 1.236 MB / 1.018 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.3309, allocations: 8.031 kB / 1.018 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003783/0.3313, allocations: 114.7 kB / 1.018 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001891/0.3332, allocations: 0.6407 MB / 1.018 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.255e-05/0.3333, allocations: 49.31 kB / 1.019 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.3335, allocations: 60 kB / 1.019 GB, free: 2.949 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001825/0.3353, allocations: 0.6624 MB / 1.019 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.3354, allocations: 0 / 1.019 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.092e-05/0.3355, allocations: 35.98 kB / 1.019 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.252e-05/0.3355, allocations: 12 kB / 1.019 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.337, allocations: 452.9 kB / 1.02 GB, free: 1.758 MB / 0.6355 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.006384/0.3434, allocations: 2.542 MB / 1.022 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.3447, allocations: 371.3 kB / 1.023 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006017/0.3453, allocations: 200.6 kB / 1.023 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004296/0.3458, allocations: 340.4 kB / 1.023 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009262/0.3467, allocations: 325.2 kB / 1.023 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 3.306e-06/0.3468, allocations: 0 / 1.023 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.002353/0.3491, allocations: 0.703 MB / 1.024 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001757/0.3494, allocations: 243.3 kB / 1.024 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001719/0.3511, allocations: 0.8245 MB / 1.025 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.3513, allocations: 41.7 kB / 1.025 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005411/0.3518, allocations: 440.3 kB / 1.026 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.3521, allocations: 118.4 kB / 1.026 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.904e-05/0.3521, allocations: 12 kB / 1.026 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3523, allocations: 326 kB / 1.026 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007224/0.353, allocations: 209 kB / 1.026 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008732/0.3539, allocations: 367.6 kB / 1.027 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/0.3548, allocations: 263.7 kB / 1.027 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.3548, allocations: 0 / 1.027 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00222/0.357, allocations: 0.729 MB / 1.027 GB, free: 9.324 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001996/0.3573, allocations: 202.5 kB / 1.028 GB, free: 9.082 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.3573, allocations: 4 kB / 1.028 GB, free: 9.078 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.426e-05/0.3573, allocations: 4 kB / 1.028 GB, free: 9.074 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001914/0.3593, allocations: 175.7 kB / 1.028 GB, free: 8.902 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/0.3609, allocations: 1.778 MB / 1.03 GB, free: 7.055 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.3624, allocations: 123.4 kB / 1.03 GB, free: 6.934 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.3625, allocations: 27.98 kB / 1.03 GB, free: 6.906 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.3626, allocations: 4 kB / 1.03 GB, free: 6.902 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001989/0.3646, allocations: 0.6428 MB / 1.03 GB, free: 6.254 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.3646, allocations: 4 kB / 1.03 GB, free: 6.25 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.3646, allocations: 4 kB / 1.03 GB, free: 6.246 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/0.3657, allocations: 131.8 kB / 1.031 GB, free: 6.117 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.3657, allocations: 4 kB / 1.031 GB, free: 6.113 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.367, allocations: 99.44 kB / 1.031 GB, free: 6.016 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.3672, allocations: 27.98 kB / 1.031 GB, free: 5.988 MB / 0.6511 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 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,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 (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007001/0.3679, allocations: 346.6 kB / 1.031 GB, free: 5.633 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002532/0.3681, allocations: 94.83 kB / 1.031 GB, free: 5.539 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002185/0.3703, allocations: 0.675 MB / 1.032 GB, free: 4.852 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.767e-05/0.3704, allocations: 4 kB / 1.032 GB, free: 4.848 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.3704, allocations: 4 kB / 1.032 GB, free: 4.844 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.3704, allocations: 3.984 kB / 1.032 GB, free: 4.84 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003696/0.3741, allocations: 1.527 MB / 1.033 GB, free: 3.242 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.3742, allocations: 0 / 1.033 GB, free: 3.242 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008348/0.375, allocations: 103.9 kB / 1.033 GB, free: 3.141 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.097e-06/0.3751, allocations: 0 / 1.033 GB, free: 3.141 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.798e-05/0.3751, allocations: 12 kB / 1.033 GB, free: 3.129 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001277/0.3764, allocations: 1.77 MB / 1.035 GB, free: 1.289 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.3765, allocations: 3.938 kB / 1.035 GB, free: 1.285 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.3792, allocations: 1.116 MB / 1.036 GB, free: 144 kB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006153/0.3799, allocations: 223.9 kB / 1.036 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/0.3801, allocations: 12 kB / 1.036 GB, free: 15.89 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009608/0.3811, allocations: 59.95 kB / 1.036 GB, free: 15.83 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.3813, allocations: 51.86 kB / 1.036 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.556e-05/0.3814, allocations: 19.98 kB / 1.036 GB, free: 15.76 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001232/0.3826, allocations: 0.5586 MB / 1.037 GB, free: 15.19 MB / 0.6667 GB Notification: Performance of sort global known variables: time 7.71e-07/0.3827, allocations: 0 / 1.037 GB, free: 15.19 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002153/0.3848, allocations: 459.1 kB / 1.037 GB, free: 14.74 MB / 0.6667 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 (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001177/0.3861, allocations: 329.6 kB / 1.038 GB, free: 14.42 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.004103/0.3902, allocations: 1.013 MB / 1.039 GB, free: 13.38 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/0.3903, allocations: 0 / 1.039 GB, free: 13.38 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.3915, allocations: 363.1 kB / 1.039 GB, free: 13.01 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003996/0.3955, allocations: 379.2 kB / 1.039 GB, free: 12.64 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/0.4002, allocations: 1.72 MB / 1.041 GB, free: 10.88 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008088/0.4011, allocations: 0.9947 MB / 1.042 GB, free: 9.863 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.001194/0.4023, allocations: 154.2 kB / 1.042 GB, free: 9.711 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002872/0.4026, allocations: 71.41 kB / 1.042 GB, free: 9.641 MB / 0.6667 GB Notification: Performance of SimCode: time 1.694e-06/0.4027, allocations: 4 kB / 1.042 GB, free: 9.637 MB / 0.6667 GB Notification: Performance of Templates: time 0.04732/0.45, allocations: 15.53 MB / 1.058 GB, free: 10.25 MB / 0.6823 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)