Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.672/1.672, allocations: 297.8 MB / 313.7 MB, free: 140 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009799/0.0009802, allocations: 188.2 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.2 MB / 0.6626 GB, free: 4.359 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008752/0.0008752, allocations: 106.9 kB / 0.7808 GB, free: 43.65 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004402/0.0004403, allocations: 12 kB / 0.9088 GB, free: 0.6836 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6947/0.6952, allocations: 120.3 MB / 1.026 GB, free: 56.5 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7966/1.492, allocations: 392.5 MB / 1.41 GB, free: 173.7 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/1.492, allocations: 97.25 kB / 1.41 GB, free: 173.7 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.9487/2.441, allocations: 306.1 MB / 1.709 GB, free: 233.1 MB / 0.9792 GB Notification: Performance of FrontEnd: time 1.803e-06/2.441, allocations: 0 / 1.709 GB, free: 233.1 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 9.804e-05/2.441, allocations: 29.59 kB / 1.709 GB, free: 233.1 MB / 0.9792 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.00263/2.444, allocations: 1.411 MB / 1.71 GB, free: 232.5 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/2.444, allocations: 10.28 kB / 1.71 GB, free: 232.5 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/2.444, allocations: 120 kB / 1.71 GB, free: 232.4 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/2.445, allocations: 0.7111 MB / 1.711 GB, free: 232.1 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.328e-05/2.445, allocations: 57.41 kB / 1.711 GB, free: 232.1 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/2.445, allocations: 67.22 kB / 1.711 GB, free: 232.1 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009815/2.446, allocations: 0.6853 MB / 1.712 GB, free: 232 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/2.446, allocations: 7.25 kB / 1.712 GB, free: 232 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.313e-05/2.446, allocations: 27.59 kB / 1.712 GB, free: 232 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/2.447, allocations: 12.16 kB / 1.712 GB, free: 232 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007629/2.447, allocations: 476.8 kB / 1.712 GB, free: 232 MB / 0.9792 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.003063/2.45, allocations: 2.603 MB / 1.715 GB, free: 230.7 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006804/2.451, allocations: 404.8 kB / 1.715 GB, free: 230.7 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/2.451, allocations: 225.4 kB / 1.715 GB, free: 230.7 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002014/2.452, allocations: 340 kB / 1.716 GB, free: 230.3 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004559/2.452, allocations: 367.9 kB / 1.716 GB, free: 230.2 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=37): time 1.974e-06/2.452, allocations: 1.5 kB / 1.716 GB, free: 230.2 MB / 0.9792 GB Notification: Performance of matching and sorting (n=37): time 0.001359/2.453, allocations: 0.7979 MB / 1.717 GB, free: 230 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/2.453, allocations: 244.2 kB / 1.717 GB, free: 229.8 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008007/2.454, allocations: 0.8364 MB / 1.718 GB, free: 229.6 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 4.943e-05/2.454, allocations: 41.98 kB / 1.718 GB, free: 229.6 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.000228/2.455, allocations: 436.8 kB / 1.718 GB, free: 229.4 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 7.434e-05/2.455, allocations: 122.5 kB / 1.718 GB, free: 229.4 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/2.455, allocations: 9.375 kB / 1.718 GB, free: 229.4 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 5.073e-05/2.455, allocations: 337.5 kB / 1.719 GB, free: 229.1 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/2.455, allocations: 225.1 kB / 1.719 GB, free: 229.1 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/2.456, allocations: 432.4 kB / 1.719 GB, free: 228.9 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006882/2.456, allocations: 0.5672 MB / 1.72 GB, free: 228.7 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/2.456, allocations: 0 / 1.72 GB, free: 228.7 MB / 0.9792 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001097/2.457, allocations: 0.8084 MB / 1.721 GB, free: 228.6 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 7.131e-05/2.457, allocations: 202.2 kB / 1.721 GB, free: 228.4 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/2.457, allocations: 2.594 kB / 1.721 GB, free: 228.4 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/2.457, allocations: 5.938 kB / 1.721 GB, free: 228.4 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009019/2.458, allocations: 188.6 kB / 1.721 GB, free: 228.4 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000571/2.459, allocations: 1.783 MB / 1.723 GB, free: 226.6 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006813/2.46, allocations: 133.9 kB / 1.723 GB, free: 226.6 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.229e-05/2.46, allocations: 31.75 kB / 1.723 GB, free: 226.6 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 5.45e-06/2.46, allocations: 6.844 kB / 1.723 GB, free: 226.6 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001015/2.461, allocations: 0.7066 MB / 1.724 GB, free: 226.5 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/2.461, allocations: 6.797 kB / 1.724 GB, free: 226.5 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.069e-06/2.461, allocations: 8.75 kB / 1.724 GB, free: 226.5 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004535/2.461, allocations: 140.8 kB / 1.724 GB, free: 226.5 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/2.461, allocations: 9.5 kB / 1.724 GB, free: 226.5 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005612/2.462, allocations: 121.1 kB / 1.724 GB, free: 226.5 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.802e-05/2.462, allocations: 32.98 kB / 1.724 GB, free: 226.5 MB / 0.9792 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.0002977/2.462, allocations: 344.9 kB / 1.724 GB, free: 226.3 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.017e-05/2.462, allocations: 96.06 kB / 1.724 GB, free: 226.3 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001174/2.463, allocations: 0.7554 MB / 1.725 GB, free: 226.2 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/2.464, allocations: 7.125 kB / 1.725 GB, free: 226.2 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/2.464, allocations: 6.75 kB / 1.725 GB, free: 226.2 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/2.464, allocations: 0 / 1.725 GB, free: 226.2 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001753/2.465, allocations: 1.624 MB / 1.727 GB, free: 225.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/2.465, allocations: 3.281 kB / 1.727 GB, free: 225.7 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003492/2.466, allocations: 95.95 kB / 1.727 GB, free: 225.7 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/2.466, allocations: 3.125 kB / 1.727 GB, free: 225.7 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.337e-05/2.466, allocations: 22.44 kB / 1.727 GB, free: 225.7 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004293/2.466, allocations: 1.767 MB / 1.729 GB, free: 223.9 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/2.466, allocations: 0 / 1.729 GB, free: 223.9 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/2.468, allocations: 1.234 MB / 1.73 GB, free: 223.5 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002332/2.468, allocations: 237.3 kB / 1.73 GB, free: 223.4 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/2.468, allocations: 23.81 kB / 1.73 GB, free: 223.3 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005157/2.468, allocations: 68.88 kB / 1.73 GB, free: 223.3 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.785e-05/2.468, allocations: 48.84 kB / 1.73 GB, free: 223.3 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/2.469, allocations: 25.28 kB / 1.73 GB, free: 223.3 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.0005316/2.469, allocations: 0.5676 MB / 1.731 GB, free: 223.2 MB / 0.9792 GB Notification: Performance of sort global known variables: time 1.2e-07/2.469, allocations: 0 / 1.731 GB, free: 223.2 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.001254/2.47, allocations: 0.4928 MB / 1.731 GB, free: 223.2 MB / 0.9792 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.0007565/2.471, allocations: 0.4916 MB / 1.732 GB, free: 223 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.001843/2.473, allocations: 1.049 MB / 1.733 GB, free: 222.9 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/2.473, allocations: 0 / 1.733 GB, free: 222.9 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0005117/2.473, allocations: 366.7 kB / 1.733 GB, free: 222.8 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/2.475, allocations: 369.9 kB / 1.733 GB, free: 222.8 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/2.477, allocations: 1.744 MB / 1.735 GB, free: 222 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/2.478, allocations: 0.9964 MB / 1.736 GB, free: 221.3 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.0005348/2.478, allocations: 154.3 kB / 1.736 GB, free: 221.3 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/2.478, allocations: 68.39 kB / 1.736 GB, free: 221.2 MB / 0.9792 GB Notification: Performance of SimCode: time 8.72e-07/2.478, allocations: 0 / 1.736 GB, free: 221.2 MB / 0.9792 GB Notification: Performance of Templates: time 0.02413/2.503, allocations: 17.33 MB / 1.753 GB, free: 221 MB / 0.9792 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)