Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/UsersGuide/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: License Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/package.mo): time 0.7143/0.7143, allocations: 117.9 MB / 133.9 MB, free: 9.234 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 172.5 kB / 161.7 MB, free: 14 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.634/1.634, allocations: 205.4 MB / 394.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 93.59 kB / 470.1 MB, free: 29.18 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004116/0.0004116, allocations: 12 kB / 0.5423 GB, free: 9.773 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1804, allocations: 74.55 MB / 0.6151 GB, free: 15.16 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.119/1.299, allocations: 362.1 MB / 0.9688 GB, free: 164.2 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/1.299, allocations: 105.5 kB / 0.9689 GB, free: 164.1 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.9243/2.224, allocations: 296.4 MB / 1.258 GB, free: 104.1 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.446e-06/2.224, allocations: 0 / 1.258 GB, free: 104.1 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0001568/2.224, allocations: 27.27 kB / 1.258 GB, free: 104.1 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.004319/2.228, allocations: 1.379 MB / 1.26 GB, free: 103 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/2.228, allocations: 10.53 kB / 1.26 GB, free: 103 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001198/2.23, allocations: 177.2 kB / 1.26 GB, free: 102.9 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002156/2.232, allocations: 0.7128 MB / 1.261 GB, free: 102.4 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.282e-05/2.232, allocations: 47.03 kB / 1.261 GB, free: 102.4 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002022/2.232, allocations: 66.56 kB / 1.261 GB, free: 102.3 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003316/2.235, allocations: 0.9809 MB / 1.262 GB, free: 101.8 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/2.235, allocations: 3.938 kB / 1.262 GB, free: 101.8 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-05/2.236, allocations: 23.53 kB / 1.262 GB, free: 101.8 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/2.236, allocations: 11.59 kB / 1.262 GB, free: 101.8 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00259/2.238, allocations: 0.7659 MB / 1.262 GB, free: 101.4 MB / 0.6198 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.004163/2.242, allocations: 2.602 MB / 1.265 GB, free: 99.27 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002469/2.245, allocations: 0.6569 MB / 1.266 GB, free: 98.99 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004555/2.245, allocations: 227.3 kB / 1.266 GB, free: 98.89 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004451/2.246, allocations: 434.2 kB / 1.266 GB, free: 98.4 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002177/2.248, allocations: 0.6272 MB / 1.267 GB, free: 98.05 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=35): time 3.296e-06/2.248, allocations: 0 / 1.267 GB, free: 98.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=35): time 0.005098/2.253, allocations: 1.346 MB / 1.268 GB, free: 97.49 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.244e-05/2.253, allocations: 195.8 kB / 1.268 GB, free: 97.26 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/2.255, allocations: 0.8193 MB / 1.269 GB, free: 96.79 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001626/2.255, allocations: 45.2 kB / 1.269 GB, free: 96.74 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004505/2.255, allocations: 438.4 kB / 1.27 GB, free: 96.36 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/2.255, allocations: 117.8 kB / 1.27 GB, free: 96.27 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.185e-05/2.255, allocations: 12.2 kB / 1.27 GB, free: 96.26 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.063e-05/2.256, allocations: 329.8 kB / 1.27 GB, free: 95.93 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008181/2.256, allocations: 330.9 kB / 1.27 GB, free: 95.8 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009355/2.257, allocations: 0.5143 MB / 1.271 GB, free: 95.42 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/2.259, allocations: 0.7558 MB / 1.272 GB, free: 94.99 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/2.259, allocations: 0 / 1.272 GB, free: 94.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002326/2.261, allocations: 1.004 MB / 1.273 GB, free: 94.52 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001294/2.261, allocations: 205.7 kB / 1.273 GB, free: 94.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/2.261, allocations: 3.812 kB / 1.273 GB, free: 94.28 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.86e-05/2.261, allocations: 7.125 kB / 1.273 GB, free: 94.28 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002476/2.264, allocations: 436.1 kB / 1.273 GB, free: 94.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006731/2.271, allocations: 4.629 MB / 1.278 GB, free: 89.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/2.272, allocations: 163.3 kB / 1.278 GB, free: 88.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002262/2.272, allocations: 39.97 kB / 1.278 GB, free: 88.88 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/2.273, allocations: 5.406 kB / 1.278 GB, free: 88.87 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001933/2.274, allocations: 0.8572 MB / 1.279 GB, free: 88.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/2.274, allocations: 4 kB / 1.279 GB, free: 88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.432e-06/2.274, allocations: 4 kB / 1.279 GB, free: 88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007259/2.275, allocations: 168 kB / 1.279 GB, free: 87.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/2.275, allocations: 19.86 kB / 1.279 GB, free: 87.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/2.276, allocations: 139.4 kB / 1.279 GB, free: 87.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.333e-05/2.276, allocations: 35.97 kB / 1.279 GB, free: 87.64 MB / 0.6198 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.0006236/2.277, allocations: 343.4 kB / 1.279 GB, free: 87.29 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002579/2.277, allocations: 90.88 kB / 1.28 GB, free: 87.2 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002123/2.279, allocations: 0.8819 MB / 1.28 GB, free: 86.3 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/2.279, allocations: 7.938 kB / 1.28 GB, free: 86.29 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/2.28, allocations: 0 / 1.28 GB, free: 86.29 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/2.28, allocations: 0 / 1.28 GB, free: 86.29 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003305/2.283, allocations: 1.606 MB / 1.282 GB, free: 84.63 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/2.283, allocations: 3.938 kB / 1.282 GB, free: 84.63 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002282/2.285, allocations: 419.5 kB / 1.282 GB, free: 84.22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/2.285, allocations: 4 kB / 1.282 GB, free: 84.21 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.017e-05/2.285, allocations: 11.98 kB / 1.282 GB, free: 84.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005336/2.291, allocations: 4.494 MB / 1.287 GB, free: 79.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/2.291, allocations: 4.125 kB / 1.287 GB, free: 79.32 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002821/2.293, allocations: 1.279 MB / 1.288 GB, free: 78.02 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000592/2.294, allocations: 235.8 kB / 1.288 GB, free: 77.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/2.294, allocations: 15.94 kB / 1.288 GB, free: 77.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/2.295, allocations: 115.9 kB / 1.288 GB, free: 77.64 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/2.296, allocations: 39.92 kB / 1.288 GB, free: 77.6 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.648e-05/2.296, allocations: 31.98 kB / 1.288 GB, free: 77.57 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0009064/2.297, allocations: 0.5744 MB / 1.289 GB, free: 76.98 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.8e-07/2.297, allocations: 0 / 1.289 GB, free: 76.98 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002292/2.299, allocations: 0.4915 MB / 1.289 GB, free: 76.49 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (30): * Single equations (assignments): 26 * 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 Backend phase and start with SimCode phase: time 0.001231/2.3, allocations: 457.1 kB / 1.29 GB, free: 76.08 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.004762/2.305, allocations: 1.527 MB / 1.291 GB, free: 74.53 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/2.305, allocations: 0 / 1.291 GB, free: 74.53 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002688/2.308, allocations: 0.706 MB / 1.292 GB, free: 73.81 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002328/2.31, allocations: 373.4 kB / 1.292 GB, free: 73.45 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003403/2.313, allocations: 1.719 MB / 1.294 GB, free: 71.7 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/2.314, allocations: 0.9876 MB / 1.295 GB, free: 70.69 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.001304/2.315, allocations: 149.9 kB / 1.295 GB, free: 70.54 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/2.315, allocations: 71.39 kB / 1.295 GB, free: 70.47 MB / 0.6198 GB Notification: Performance of SimCode: time 9.92e-07/2.315, allocations: 0 / 1.295 GB, free: 70.47 MB / 0.6198 GB Notification: Performance of Templates: time 0.03027/2.346, allocations: 18.16 MB / 1.313 GB, free: 52.52 MB / 0.6198 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)