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/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.525/1.525, allocations: 289.9 MB / 297.4 MB, free: 6.41 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.001008/0.001007, allocations: 172.9 kB / 366.7 MB, free: 1.691 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.403/1.403, allocations: 205.2 MB / 0.626 GB, free: 7.172 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008752/0.0008752, allocations: 91.27 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.457e-05/1.458e-05, allocations: 4 kB / 0.8597 GB, free: 13.06 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5405/0.5405, allocations: 116.3 MB / 0.9733 GB, free: 76.54 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8782/1.419, allocations: 403 MB / 1.367 GB, free: 153.2 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/1.419, allocations: 98.84 kB / 1.367 GB, free: 153.2 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.015/2.434, allocations: 299 MB / 1.659 GB, free: 249.9 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.423e-06/2.434, allocations: 0 / 1.659 GB, free: 249.9 MB / 0.948 GB Notification: Performance of Transformations before backend: time 7.407e-05/2.434, allocations: 30.62 kB / 1.659 GB, free: 249.9 MB / 0.948 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.001973/2.436, allocations: 1.24 MB / 1.66 GB, free: 249.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/2.436, allocations: 10.16 kB / 1.66 GB, free: 249.3 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/2.436, allocations: 119.3 kB / 1.66 GB, free: 249.2 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/2.437, allocations: 0.6684 MB / 1.661 GB, free: 249 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/2.437, allocations: 18.38 kB / 1.661 GB, free: 249 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.783e-05/2.438, allocations: 39.31 kB / 1.661 GB, free: 249 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006937/2.438, allocations: 401.5 kB / 1.661 GB, free: 249 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008223/2.439, allocations: 0.5676 MB / 1.662 GB, free: 248.8 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/2.439, allocations: 4.469 kB / 1.662 GB, free: 248.8 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.569e-05/2.439, allocations: 1.875 kB / 1.662 GB, free: 248.8 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/2.439, allocations: 14.34 kB / 1.662 GB, free: 248.8 MB / 0.948 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.002878/2.442, allocations: 2.47 MB / 1.664 GB, free: 247.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004982/2.443, allocations: 340.1 kB / 1.665 GB, free: 247.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002652/2.443, allocations: 184.7 kB / 1.665 GB, free: 247.6 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002545/2.443, allocations: 347.2 kB / 1.665 GB, free: 247.2 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003824/2.443, allocations: 317.5 kB / 1.665 GB, free: 247.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=37): time 1.733e-06/2.444, allocations: 0 / 1.665 GB, free: 247.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=37): time 0.001499/2.445, allocations: 0.6106 MB / 1.666 GB, free: 247 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/2.445, allocations: 241 kB / 1.666 GB, free: 246.7 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006705/2.446, allocations: 0.5856 MB / 1.667 GB, free: 246.6 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 5.083e-05/2.446, allocations: 29.45 kB / 1.667 GB, free: 246.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002683/2.446, allocations: 443.9 kB / 1.667 GB, free: 246.4 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.636e-05/2.446, allocations: 113.9 kB / 1.667 GB, free: 246.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.064e-05/2.446, allocations: 4.188 kB / 1.667 GB, free: 246.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.464e-05/2.446, allocations: 328 kB / 1.668 GB, free: 246 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003125/2.447, allocations: 196 kB / 1.668 GB, free: 246 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000435/2.447, allocations: 380 kB / 1.668 GB, free: 245.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008079/2.448, allocations: 312.4 kB / 1.669 GB, free: 245.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/2.448, allocations: 1.188 kB / 1.669 GB, free: 245.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001579/2.449, allocations: 0.7614 MB / 1.669 GB, free: 245.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002588/2.45, allocations: 1.082 MB / 1.67 GB, free: 244.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/2.45, allocations: 2.875 kB / 1.67 GB, free: 244.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/2.45, allocations: 6.906 kB / 1.67 GB, free: 244.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009467/2.451, allocations: 167.3 kB / 1.67 GB, free: 244.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006977/2.451, allocations: 1.796 MB / 1.672 GB, free: 242.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007515/2.452, allocations: 104.1 kB / 1.672 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.088e-05/2.452, allocations: 39.8 kB / 1.672 GB, free: 242.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/2.452, allocations: 4.438 kB / 1.672 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001346/2.454, allocations: 0.6365 MB / 1.673 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/2.454, allocations: 3.312 kB / 1.673 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/2.454, allocations: 9.484 kB / 1.673 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005191/2.454, allocations: 137.3 kB / 1.673 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/2.454, allocations: 13.88 kB / 1.673 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006146/2.455, allocations: 97.58 kB / 1.673 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.648e-05/2.455, allocations: 33.55 kB / 1.673 GB, free: 242.8 MB / 0.948 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.0001786/2.455, allocations: 161.9 kB / 1.673 GB, free: 242.7 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/2.455, allocations: 83.53 kB / 1.674 GB, free: 242.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/2.457, allocations: 0.7055 MB / 1.674 GB, free: 242.6 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/2.457, allocations: 12.14 kB / 1.674 GB, free: 242.6 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/2.457, allocations: 5.078 kB / 1.674 GB, free: 242.6 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/2.457, allocations: 0 / 1.674 GB, free: 242.6 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/2.459, allocations: 1.512 MB / 1.676 GB, free: 242.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/2.459, allocations: 2.25 kB / 1.676 GB, free: 242.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004113/2.46, allocations: 100.1 kB / 1.676 GB, free: 242.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/2.46, allocations: 6.766 kB / 1.676 GB, free: 242.1 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/2.46, allocations: 16.55 kB / 1.676 GB, free: 242.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004773/2.46, allocations: 1.766 MB / 1.678 GB, free: 240.3 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/2.46, allocations: 0.875 kB / 1.678 GB, free: 240.3 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/2.462, allocations: 1.218 MB / 1.679 GB, free: 239.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/2.462, allocations: 222 kB / 1.679 GB, free: 239.8 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/2.462, allocations: 9.625 kB / 1.679 GB, free: 239.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005552/2.463, allocations: 64.33 kB / 1.679 GB, free: 239.8 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/2.463, allocations: 55.98 kB / 1.679 GB, free: 239.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.305e-05/2.463, allocations: 26.03 kB / 1.679 GB, free: 239.8 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.000483/2.463, allocations: 450.8 kB / 1.68 GB, free: 239.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.7e-07/2.463, allocations: 0 / 1.68 GB, free: 239.7 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001498/2.465, allocations: 499.4 kB / 1.68 GB, free: 239.6 MB / 0.948 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.0008295/2.466, allocations: 477.1 kB / 1.68 GB, free: 239.4 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.00155/2.467, allocations: 0.924 MB / 1.681 GB, free: 239.3 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/2.467, allocations: 0 / 1.681 GB, free: 239.3 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004383/2.468, allocations: 321.8 kB / 1.682 GB, free: 239.2 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001606/2.469, allocations: 306.3 kB / 1.682 GB, free: 239.2 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/2.471, allocations: 1.027 MB / 1.683 GB, free: 238.9 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/2.472, allocations: 1.017 MB / 1.684 GB, free: 238.2 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0007008/2.472, allocations: 194.7 kB / 1.684 GB, free: 238.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/2.473, allocations: 56.09 kB / 1.684 GB, free: 238.1 MB / 0.948 GB Notification: Performance of SimCode: time 2.4e-07/2.473, allocations: 0 / 1.684 GB, free: 238.1 MB / 0.948 GB Notification: Performance of Templates: time 0.02163/2.494, allocations: 15.66 MB / 1.699 GB, free: 237.9 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (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)