Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8142/0.8142, allocations: 141.8 MB / 149.3 MB, free: 9.234 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009874/0.0009875, allocations: 171.8 kB / 182.2 MB, free: 9.473 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 221.5 MB / 436.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001017, allocations: 88.11 kB / 0.5074 GB, free: 10.2 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001946/0.001946, allocations: 277.1 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.96e-05/1.949e-05, allocations: 4 kB / 0.6765 GB, free: 12.83 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4667/0.4667, allocations: 82.77 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8716/1.338, allocations: 359.5 MB / 1.108 GB, free: 5.402 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003303/1.339, allocations: 104.6 kB / 1.109 GB, free: 5.348 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.9853/2.324, allocations: 305.1 MB / 1.406 GB, free: 42.83 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.543e-06/2.324, allocations: 4 kB / 1.406 GB, free: 42.83 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001566/2.324, allocations: 24 kB / 1.407 GB, free: 42.8 MB / 0.698 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.002882/2.327, allocations: 1.244 MB / 1.408 GB, free: 41.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/2.327, allocations: 8.031 kB / 1.408 GB, free: 41.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004044/2.328, allocations: 122.6 kB / 1.408 GB, free: 41.38 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001409/2.329, allocations: 0.6756 MB / 1.409 GB, free: 40.66 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.07e-05/2.329, allocations: 20 kB / 1.409 GB, free: 40.64 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/2.329, allocations: 40 kB / 1.409 GB, free: 40.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006785/2.33, allocations: 398.5 kB / 1.409 GB, free: 40.21 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008173/2.331, allocations: 0.578 MB / 1.41 GB, free: 39.59 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/2.331, allocations: 0 / 1.41 GB, free: 39.59 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.277e-05/2.331, allocations: 3.984 kB / 1.41 GB, free: 39.59 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/2.331, allocations: 16 kB / 1.41 GB, free: 39.57 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.003337/2.334, allocations: 2.463 MB / 1.412 GB, free: 36.99 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004498/2.335, allocations: 349.5 kB / 1.412 GB, free: 36.64 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002193/2.335, allocations: 185.4 kB / 1.412 GB, free: 36.45 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002534/2.335, allocations: 344.4 kB / 1.413 GB, free: 36.04 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003714/2.336, allocations: 329.3 kB / 1.413 GB, free: 35.69 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 2.364e-06/2.336, allocations: 0 / 1.413 GB, free: 35.69 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.00146/2.337, allocations: 0.6003 MB / 1.414 GB, free: 35.08 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/2.337, allocations: 243.5 kB / 1.414 GB, free: 34.79 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006615/2.338, allocations: 0.5985 MB / 1.414 GB, free: 34.18 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.192e-05/2.338, allocations: 29.7 kB / 1.415 GB, free: 34.14 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/2.338, allocations: 439.9 kB / 1.415 GB, free: 33.71 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.289e-05/2.338, allocations: 118.4 kB / 1.415 GB, free: 33.59 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/2.338, allocations: 0 / 1.415 GB, free: 33.59 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.442e-05/2.338, allocations: 322 kB / 1.415 GB, free: 33.27 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002585/2.339, allocations: 193.1 kB / 1.416 GB, free: 33.08 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003572/2.339, allocations: 379.8 kB / 1.416 GB, free: 32.63 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000833/2.34, allocations: 313.8 kB / 1.416 GB, free: 32.33 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/2.34, allocations: 4 kB / 1.416 GB, free: 32.32 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001479/2.341, allocations: 0.7547 MB / 1.417 GB, free: 31.57 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002572/2.342, allocations: 1.084 MB / 1.418 GB, free: 30.39 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/2.342, allocations: 4 kB / 1.418 GB, free: 30.39 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/2.342, allocations: 4 kB / 1.418 GB, free: 30.39 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000927/2.343, allocations: 163.7 kB / 1.418 GB, free: 30.23 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007832/2.343, allocations: 1.793 MB / 1.42 GB, free: 28.36 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008501/2.344, allocations: 107.6 kB / 1.42 GB, free: 28.26 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.724e-05/2.344, allocations: 35.92 kB / 1.42 GB, free: 28.22 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/2.344, allocations: 4.547 kB / 1.42 GB, free: 28.22 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001274/2.346, allocations: 0.6369 MB / 1.421 GB, free: 27.58 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/2.346, allocations: 4 kB / 1.421 GB, free: 27.58 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.554e-06/2.346, allocations: 4.344 kB / 1.421 GB, free: 27.57 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004826/2.346, allocations: 143.7 kB / 1.421 GB, free: 27.43 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/2.346, allocations: 7.938 kB / 1.421 GB, free: 27.43 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007322/2.347, allocations: 91.61 kB / 1.421 GB, free: 27.34 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/2.347, allocations: 35.98 kB / 1.421 GB, free: 27.3 MB / 0.698 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * 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.0001973/2.347, allocations: 159.4 kB / 1.421 GB, free: 27.13 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/2.347, allocations: 94.86 kB / 1.421 GB, free: 27.04 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001625/2.349, allocations: 0.7096 MB / 1.422 GB, free: 26.32 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/2.349, allocations: 12 kB / 1.422 GB, free: 26.31 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/2.349, allocations: 3.953 kB / 1.422 GB, free: 26.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/2.349, allocations: 0 / 1.422 GB, free: 26.3 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002448/2.352, allocations: 1.526 MB / 1.423 GB, free: 24.72 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.545e-06/2.352, allocations: 4 kB / 1.423 GB, free: 24.72 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004038/2.352, allocations: 95.81 kB / 1.423 GB, free: 24.62 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/2.352, allocations: 11.94 kB / 1.423 GB, free: 24.61 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.514e-05/2.352, allocations: 8 kB / 1.424 GB, free: 24.61 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004966/2.353, allocations: 1.778 MB / 1.425 GB, free: 22.76 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/2.353, allocations: 0 / 1.425 GB, free: 22.76 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/2.354, allocations: 1.205 MB / 1.426 GB, free: 21.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003219/2.354, allocations: 228 kB / 1.427 GB, free: 21.26 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/2.355, allocations: 8 kB / 1.427 GB, free: 21.25 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006645/2.355, allocations: 71.77 kB / 1.427 GB, free: 21.18 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/2.355, allocations: 55.81 kB / 1.427 GB, free: 21.13 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-05/2.355, allocations: 20 kB / 1.427 GB, free: 21.11 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004819/2.356, allocations: 463.1 kB / 1.427 GB, free: 20.66 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.7e-07/2.356, allocations: 3.938 kB / 1.427 GB, free: 20.66 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001658/2.358, allocations: 494.9 kB / 1.428 GB, free: 20.18 MB / 0.698 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) * 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.001113/2.359, allocations: 470.7 kB / 1.428 GB, free: 19.71 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001683/2.36, allocations: 0.929 MB / 1.429 GB, free: 18.75 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/2.36, allocations: 4 kB / 1.429 GB, free: 18.75 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004442/2.361, allocations: 315.8 kB / 1.429 GB, free: 18.43 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/2.363, allocations: 305.2 kB / 1.43 GB, free: 18.13 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/2.365, allocations: 1.035 MB / 1.431 GB, free: 17.06 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/2.365, allocations: 1.022 MB / 1.432 GB, free: 16.01 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008207/2.366, allocations: 191.9 kB / 1.432 GB, free: 15.82 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/2.366, allocations: 59.36 kB / 1.432 GB, free: 15.76 MB / 0.698 GB Notification: Performance of SimCode: time 1.693e-06/2.366, allocations: 0 / 1.432 GB, free: 15.76 MB / 0.698 GB Notification: Performance of Templates: time 0.02451/2.391, allocations: 15.56 MB / 1.447 GB, free: 360 kB / 0.698 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)