Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.538/1.538, allocations: 285.6 MB / 293.1 MB, free: 10.25 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.001002/0.001002, allocations: 188.2 kB / 361.4 MB, free: 6.867 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.431/1.431, allocations: 205.2 MB / 0.62 GB, free: 11.67 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.001104/0.001104, allocations: 97 kB / 0.733 GB, free: 44.2 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.808e-05/1.81e-05, allocations: 4 kB / 0.8517 GB, free: 2.77 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6159/0.6159, allocations: 115.3 MB / 0.9644 GB, free: 78.75 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9551/1.571, allocations: 402 MB / 1.357 GB, free: 164.8 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/1.571, allocations: 92.59 kB / 1.357 GB, free: 164.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.284/2.855, allocations: 299 MB / 1.649 GB, free: 238.9 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.362e-06/2.855, allocations: 0 / 1.649 GB, free: 238.9 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 8.656e-05/2.855, allocations: 33.52 kB / 1.649 GB, free: 238.9 MB / 0.9323 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.002732/2.858, allocations: 1.241 MB / 1.65 GB, free: 238.3 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/2.858, allocations: 12.69 kB / 1.65 GB, free: 238.3 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000275/2.859, allocations: 115.2 kB / 1.65 GB, free: 238.3 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/2.86, allocations: 0.6672 MB / 1.651 GB, free: 238 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.326e-05/2.86, allocations: 17.78 kB / 1.651 GB, free: 238 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/2.86, allocations: 39.12 kB / 1.651 GB, free: 238 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007048/2.861, allocations: 403.6 kB / 1.651 GB, free: 238 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008831/2.862, allocations: 0.5715 MB / 1.652 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/2.862, allocations: 2.906 kB / 1.652 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5e-05/2.862, allocations: 2.75 kB / 1.652 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/2.862, allocations: 15 kB / 1.652 GB, free: 237.9 MB / 0.9323 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.003336/2.865, allocations: 2.465 MB / 1.654 GB, free: 236.6 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005376/2.866, allocations: 342.5 kB / 1.655 GB, free: 236.6 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002616/2.866, allocations: 180 kB / 1.655 GB, free: 236.6 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002842/2.866, allocations: 353.1 kB / 1.655 GB, free: 236.2 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004385/2.867, allocations: 316.6 kB / 1.656 GB, free: 236.1 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 4.037e-06/2.867, allocations: 2.531 kB / 1.656 GB, free: 236.1 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.001669/2.868, allocations: 0.6062 MB / 1.656 GB, free: 236 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/2.868, allocations: 242 kB / 1.656 GB, free: 235.8 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007208/2.869, allocations: 0.5818 MB / 1.657 GB, free: 235.6 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 5.988e-05/2.869, allocations: 34.55 kB / 1.657 GB, free: 235.6 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.000273/2.869, allocations: 445 kB / 1.657 GB, free: 235.4 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 8.785e-05/2.87, allocations: 119.6 kB / 1.658 GB, free: 235.4 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/2.87, allocations: 1.156 kB / 1.658 GB, free: 235.4 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 6.807e-05/2.87, allocations: 328.5 kB / 1.658 GB, free: 235 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000299/2.87, allocations: 187.6 kB / 1.658 GB, free: 235 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000419/2.87, allocations: 385.5 kB / 1.658 GB, free: 234.8 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009609/2.871, allocations: 312.4 kB / 1.659 GB, free: 234.8 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/2.871, allocations: 1.125 kB / 1.659 GB, free: 234.8 MB / 0.9323 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001706/2.873, allocations: 0.7576 MB / 1.659 GB, free: 234.7 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002844/2.873, allocations: 1.091 MB / 1.66 GB, free: 233.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/2.873, allocations: 3.906 kB / 1.66 GB, free: 233.6 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.815e-05/2.873, allocations: 4.562 kB / 1.66 GB, free: 233.6 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009875/2.874, allocations: 161.4 kB / 1.661 GB, free: 233.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007572/2.875, allocations: 1.797 MB / 1.662 GB, free: 231.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008782/2.876, allocations: 103.3 kB / 1.663 GB, free: 231.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.703e-05/2.876, allocations: 31.8 kB / 1.663 GB, free: 231.8 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/2.876, allocations: 3.938 kB / 1.663 GB, free: 231.8 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001457/2.878, allocations: 0.637 MB / 1.663 GB, free: 231.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/2.878, allocations: 3.312 kB / 1.663 GB, free: 231.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/2.878, allocations: 11.56 kB / 1.663 GB, free: 231.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005333/2.878, allocations: 136 kB / 1.663 GB, free: 231.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/2.878, allocations: 6.031 kB / 1.663 GB, free: 231.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007753/2.879, allocations: 100.1 kB / 1.663 GB, free: 231.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.141e-05/2.879, allocations: 34.14 kB / 1.663 GB, free: 231.8 MB / 0.9323 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.0002245/2.879, allocations: 162.8 kB / 1.664 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/2.88, allocations: 82.41 kB / 1.664 GB, free: 231.6 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/2.881, allocations: 0.7184 MB / 1.664 GB, free: 231.6 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/2.881, allocations: 3.781 kB / 1.664 GB, free: 231.6 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/2.881, allocations: 5.047 kB / 1.664 GB, free: 231.6 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/2.881, allocations: 1.438 kB / 1.664 GB, free: 231.6 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002636/2.884, allocations: 1.508 MB / 1.666 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/2.884, allocations: 5.031 kB / 1.666 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004589/2.885, allocations: 98.91 kB / 1.666 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/2.885, allocations: 6.828 kB / 1.666 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-05/2.885, allocations: 15.06 kB / 1.666 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005704/2.885, allocations: 1.769 MB / 1.668 GB, free: 229.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/2.885, allocations: 4.906 kB / 1.668 GB, free: 229.3 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/2.887, allocations: 1.216 MB / 1.669 GB, free: 228.9 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003863/2.888, allocations: 223.4 kB / 1.669 GB, free: 228.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/2.888, allocations: 11.47 kB / 1.669 GB, free: 228.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006055/2.888, allocations: 66.91 kB / 1.669 GB, free: 228.8 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/2.888, allocations: 50.81 kB / 1.669 GB, free: 228.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-05/2.889, allocations: 24.28 kB / 1.669 GB, free: 228.8 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0006021/2.889, allocations: 450.1 kB / 1.67 GB, free: 228.7 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.343e-06/2.889, allocations: 3 kB / 1.67 GB, free: 228.7 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.001966/2.891, allocations: 499.3 kB / 1.67 GB, free: 228.6 MB / 0.9323 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.001166/2.892, allocations: 482.6 kB / 1.671 GB, free: 228.4 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.00201/2.894, allocations: 0.9167 MB / 1.672 GB, free: 228.3 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/2.894, allocations: 1.438 kB / 1.672 GB, free: 228.3 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0005468/2.895, allocations: 326.4 kB / 1.672 GB, free: 228.2 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/2.897, allocations: 307.7 kB / 1.672 GB, free: 228.2 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002188/2.899, allocations: 1.029 MB / 1.673 GB, free: 227.9 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/2.9, allocations: 1.023 MB / 1.674 GB, free: 227.2 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.00087/2.9, allocations: 185.4 kB / 1.674 GB, free: 227.1 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/2.901, allocations: 58.45 kB / 1.674 GB, free: 227.1 MB / 0.9323 GB Notification: Performance of SimCode: time 1.493e-06/2.901, allocations: 3.938 kB / 1.674 GB, free: 227.1 MB / 0.9323 GB Notification: Performance of Templates: time 0.02444/2.925, allocations: 15.66 MB / 1.69 GB, free: 226.8 MB / 0.9323 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)