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.0009814/0.0009815, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001123/0.001123, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.4 MB / 222.1 MB, free: 5.527 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.629/1.629, allocations: 292.5 MB / 0.5497 GB, free: 14.59 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.0005666/0.0005667, allocations: 15.41 kB / 0.6736 GB, free: 26.07 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2647, allocations: 116.3 MB / 0.7871 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02019/0.2849, allocations: 19.83 MB / 0.8065 GB, free: 8.059 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01325/0.2982, allocations: 8.616 MB / 0.8149 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.2995, allocations: 31.69 kB / 0.8149 GB, free: 15.39 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001693/0.3013, allocations: 0.5173 MB / 0.8154 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.003358/0.3046, allocations: 1.102 MB / 0.8165 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.007057/0.3117, allocations: 2.478 MB / 0.8189 GB, free: 11.32 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.002369/0.3141, allocations: 1.195 MB / 0.8201 GB, free: 10.12 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000878/0.315, allocations: 0.5921 MB / 0.8207 GB, free: 9.516 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00119/0.3162, allocations: 0.654 MB / 0.8213 GB, free: 8.859 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006893/0.3169, allocations: 0.4979 MB / 0.8218 GB, free: 8.359 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 8.093e-05/0.317, allocations: 32 kB / 0.8218 GB, free: 8.328 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001712/0.3187, allocations: 0.9049 MB / 0.8227 GB, free: 7.422 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.3189, allocations: 159.3 kB / 0.8229 GB, free: 7.266 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0002006/0.3191, allocations: 193.2 kB / 0.8231 GB, free: 7.07 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.001196/0.3203, allocations: 1.033 MB / 0.8241 GB, free: 6.035 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3203, allocations: 0 / 0.8241 GB, free: 6.035 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3203, allocations: 0 / 0.8241 GB, free: 6.035 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.6e-05/0.3204, allocations: 0 / 0.8241 GB, free: 6.035 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.001941/0.3223, allocations: 1.239 MB / 0.8253 GB, free: 4.738 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3224, allocations: 16 kB / 0.8253 GB, free: 4.723 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.3225, allocations: 114.7 kB / 0.8254 GB, free: 4.609 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.3236, allocations: 0.6368 MB / 0.826 GB, free: 3.934 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.552e-05/0.3236, allocations: 49.31 kB / 0.8261 GB, free: 3.883 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.526e-05/0.3237, allocations: 64 kB / 0.8261 GB, free: 3.82 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.3248, allocations: 0.6585 MB / 0.8268 GB, free: 3.121 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.3248, allocations: 0 / 0.8268 GB, free: 3.121 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.07e-05/0.3249, allocations: 20 kB / 0.8268 GB, free: 3.102 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.3249, allocations: 19.94 kB / 0.8268 GB, free: 3.082 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007764/0.3257, allocations: 460.9 kB / 0.8272 GB, free: 2.629 MB / 0.6387 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.003532/0.3292, allocations: 2.534 MB / 0.8297 GB, free: 15.96 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006855/0.3299, allocations: 375.2 kB / 0.8301 GB, free: 15.59 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003001/0.3302, allocations: 340.4 kB / 0.8304 GB, free: 15.18 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005741/0.3308, allocations: 325.2 kB / 0.8307 GB, free: 14.83 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=37): time 1.783e-06/0.3308, allocations: 4 kB / 0.8307 GB, free: 14.83 MB / 0.6544 GB Notification: Performance of matching and sorting (n=37): time 0.001293/0.3321, allocations: 0.775 MB / 0.8315 GB, free: 14.02 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.3322, allocations: 247.6 kB / 0.8317 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008976/0.3331, allocations: 0.8243 MB / 0.8325 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.236e-05/0.3332, allocations: 41.7 kB / 0.8326 GB, free: 12.83 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003264/0.3335, allocations: 436.3 kB / 0.833 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 9.455e-05/0.3336, allocations: 114.4 kB / 0.8331 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.3337, allocations: 12 kB / 0.8331 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.3338, allocations: 326 kB / 0.8334 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003553/0.3342, allocations: 209.1 kB / 0.8336 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004521/0.3346, allocations: 359.6 kB / 0.8339 GB, free: 11.34 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004146/0.3351, allocations: 255.6 kB / 0.8342 GB, free: 11.08 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.3351, allocations: 4 kB / 0.8342 GB, free: 11.08 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001093/0.3362, allocations: 0.729 MB / 0.8349 GB, free: 10.34 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005013/0.3367, allocations: 1.086 MB / 0.836 GB, free: 9.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3367, allocations: 0.5469 kB / 0.836 GB, free: 9.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.3367, allocations: 8 kB / 0.836 GB, free: 9.152 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000964/0.3377, allocations: 175.8 kB / 0.8361 GB, free: 8.98 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009476/0.3386, allocations: 1.778 MB / 0.8379 GB, free: 7.133 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000647/0.3393, allocations: 115.2 kB / 0.838 GB, free: 7.02 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.477e-05/0.3394, allocations: 27.98 kB / 0.838 GB, free: 6.992 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/0.3394, allocations: 6.969 kB / 0.838 GB, free: 6.988 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009984/0.3404, allocations: 0.6387 MB / 0.8386 GB, free: 6.344 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.3404, allocations: 7.938 kB / 0.8387 GB, free: 6.336 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.376e-06/0.3404, allocations: 8 kB / 0.8387 GB, free: 6.328 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004872/0.3409, allocations: 127.8 kB / 0.8388 GB, free: 6.203 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.3409, allocations: 8.094 kB / 0.8388 GB, free: 6.195 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005398/0.3415, allocations: 107.6 kB / 0.8389 GB, free: 6.09 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.457e-05/0.3415, allocations: 27.98 kB / 0.8389 GB, free: 6.062 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 ($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.0004137/0.342, allocations: 342.7 kB / 0.8392 GB, free: 5.711 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.3421, allocations: 90.88 kB / 0.8393 GB, free: 5.621 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/0.3433, allocations: 0.6827 MB / 0.84 GB, free: 4.922 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.3433, allocations: 8 kB / 0.84 GB, free: 4.914 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3433, allocations: 3.984 kB / 0.84 GB, free: 4.91 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3433, allocations: 4 kB / 0.84 GB, free: 4.906 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/0.3453, allocations: 1.523 MB / 0.8415 GB, free: 3.312 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.3453, allocations: 4 kB / 0.8415 GB, free: 3.309 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003998/0.3457, allocations: 91.88 kB / 0.8416 GB, free: 3.219 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.3457, allocations: 4 kB / 0.8416 GB, free: 3.215 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.333e-05/0.3457, allocations: 15.98 kB / 0.8416 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007533/0.3465, allocations: 1.77 MB / 0.8433 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3465, allocations: 288 / 0.8433 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.3479, allocations: 1.158 MB / 0.8445 GB, free: 152 kB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/0.3482, allocations: 227.7 kB / 0.8447 GB, free: 15.91 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.3483, allocations: 19.95 kB / 0.8447 GB, free: 15.89 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005036/0.3489, allocations: 56 kB / 0.8448 GB, free: 15.83 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.349, allocations: 43.88 kB / 0.8448 GB, free: 15.79 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.645e-05/0.349, allocations: 23.98 kB / 0.8448 GB, free: 15.77 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0006325/0.3497, allocations: 0.5549 MB / 0.8454 GB, free: 15.2 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3497, allocations: 4 kB / 0.8454 GB, free: 15.2 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001219/0.3509, allocations: 459.1 kB / 0.8458 GB, free: 14.75 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 (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.0007217/0.3516, allocations: 336.3 kB / 0.8461 GB, free: 14.42 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002068/0.3537, allocations: 1.02 MB / 0.8471 GB, free: 13.38 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3537, allocations: 0 / 0.8471 GB, free: 13.38 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0006069/0.3543, allocations: 364 kB / 0.8475 GB, free: 13.01 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/0.3562, allocations: 373.6 kB / 0.8478 GB, free: 12.64 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.3589, allocations: 1.706 MB / 0.8495 GB, free: 10.9 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005586/0.3595, allocations: 1.021 MB / 0.8505 GB, free: 9.852 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0005729/0.36, allocations: 158.1 kB / 0.8506 GB, free: 9.695 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.3602, allocations: 71.41 kB / 0.8507 GB, free: 9.625 MB / 0.67 GB Notification: Performance of SimCode: time 7.52e-07/0.3602, allocations: 0 / 0.8507 GB, free: 9.625 MB / 0.67 GB Notification: Performance of Templates: time 0.02495/0.3851, allocations: 15.53 MB / 0.8659 GB, free: 10.3 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: