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.72/1.72, allocations: 288.4 MB / 303.7 MB, free: 8.02 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.001118/0.001118, allocations: 187.9 kB / 372.3 MB, free: 10.13 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.762/1.762, allocations: 205.4 MB / 0.631 GB, free: 9.918 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009929/0.0009929, allocations: 94.28 kB / 0.7444 GB, free: 5.828 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004998/0.0005, allocations: 16.69 kB / 0.8675 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2375, allocations: 115.3 MB / 0.9801 GB, free: 27.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01686/0.2545, allocations: 21.57 MB / 1.001 GB, free: 5.719 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01544/0.27, allocations: 9.119 MB / 1.01 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002091/0.2721, allocations: 31.69 kB / 1.01 GB, free: 12.55 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.2737, allocations: 294.2 kB / 1.01 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.003752/0.2774, allocations: 0.9378 MB / 1.011 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.003513/0.281, allocations: 0.8865 MB / 1.012 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.00328/0.2843, allocations: 2.167 MB / 1.014 GB, free: 8.277 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.2856, allocations: 0.6223 MB / 1.015 GB, free: 7.637 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001672/0.2873, allocations: 0.7041 MB / 1.016 GB, free: 6.93 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.2886, allocations: 0.638 MB / 1.016 GB, free: 6.289 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0002471/0.2889, allocations: 28 kB / 1.016 GB, free: 6.262 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.2909, allocations: 0.9045 MB / 1.017 GB, free: 5.355 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0002921/0.2912, allocations: 163.2 kB / 1.017 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0006997/0.2919, allocations: 447.3 kB / 1.018 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.001546/0.2935, allocations: 1.037 MB / 1.019 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2935, allocations: 0 / 1.019 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.883e-06/0.2935, allocations: 4 kB / 1.019 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.7e-05/0.2935, allocations: 0 / 1.019 GB, free: 3.707 MB / 0.6355 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.001956/0.2955, allocations: 1.232 MB / 1.02 GB, free: 2.418 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.2956, allocations: 12.02 kB / 1.02 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.2957, allocations: 119.6 kB / 1.02 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.2968, allocations: 0.6714 MB / 1.021 GB, free: 1.578 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.18e-05/0.2968, allocations: 45.31 kB / 1.021 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.205e-05/0.2969, allocations: 64 kB / 1.021 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.298, allocations: 0.6624 MB / 1.021 GB, free: 0.7656 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.298, allocations: 4 kB / 1.021 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.298, allocations: 28 kB / 1.021 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.2981, allocations: 12 kB / 1.022 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007669/0.2988, allocations: 452.9 kB / 1.022 GB, free: 288 kB / 0.6355 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.003422/0.3023, allocations: 2.542 MB / 1.024 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006769/0.303, allocations: 367.5 kB / 1.025 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003238/0.3033, allocations: 192.8 kB / 1.025 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002806/0.3036, allocations: 340.4 kB / 1.025 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005413/0.3041, allocations: 329.2 kB / 1.026 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.625e-06/0.3042, allocations: 0 / 1.026 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.00138/0.3055, allocations: 0.7126 MB / 1.026 GB, free: 11.56 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.3057, allocations: 239.6 kB / 1.027 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009675/0.3066, allocations: 0.832 MB / 1.027 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.605e-05/0.3067, allocations: 45.7 kB / 1.027 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.000317/0.307, allocations: 428.4 kB / 1.028 GB, free: 9.941 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.299e-05/0.3071, allocations: 114.4 kB / 1.028 GB, free: 9.828 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/0.3072, allocations: 12 kB / 1.028 GB, free: 9.816 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.3073, allocations: 330 kB / 1.028 GB, free: 9.488 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003736/0.3076, allocations: 205.1 kB / 1.028 GB, free: 9.289 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004832/0.3081, allocations: 363.6 kB / 1.029 GB, free: 8.871 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007835/0.3089, allocations: 0.5262 MB / 1.029 GB, free: 8.297 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.309, allocations: 0 / 1.029 GB, free: 8.297 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001178/0.3101, allocations: 0.7253 MB / 1.03 GB, free: 7.559 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001318/0.3103, allocations: 206.3 kB / 1.03 GB, free: 7.309 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.3103, allocations: 4 kB / 1.03 GB, free: 7.305 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.3103, allocations: 8.547 kB / 1.03 GB, free: 7.297 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.3114, allocations: 175.7 kB / 1.03 GB, free: 7.125 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009575/0.3123, allocations: 1.778 MB / 1.032 GB, free: 5.277 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007174/0.3131, allocations: 111.3 kB / 1.032 GB, free: 5.168 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.806e-05/0.3131, allocations: 35.92 kB / 1.032 GB, free: 5.133 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/0.3131, allocations: 4 kB / 1.032 GB, free: 5.129 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001059/0.3142, allocations: 0.6386 MB / 1.033 GB, free: 4.488 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.3142, allocations: 352 / 1.033 GB, free: 4.488 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.3142, allocations: 15.94 kB / 1.033 GB, free: 4.473 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005237/0.3148, allocations: 127.9 kB / 1.033 GB, free: 4.348 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.3148, allocations: 15.92 kB / 1.033 GB, free: 4.332 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005947/0.3154, allocations: 95.48 kB / 1.033 GB, free: 4.238 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.383e-05/0.3154, allocations: 27.92 kB / 1.033 GB, free: 4.211 MB / 0.6511 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.0004196/0.3159, allocations: 352.8 kB / 1.033 GB, free: 3.852 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.316, allocations: 98.81 kB / 1.034 GB, free: 3.754 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001222/0.3172, allocations: 0.6712 MB / 1.034 GB, free: 3.07 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.3172, allocations: 7.984 kB / 1.034 GB, free: 3.062 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3173, allocations: 0 / 1.034 GB, free: 3.062 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.3173, allocations: 4 kB / 1.034 GB, free: 3.059 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.3193, allocations: 1.522 MB / 1.036 GB, free: 1.465 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.3193, allocations: 0 / 1.036 GB, free: 1.465 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00042/0.3197, allocations: 99.98 kB / 1.036 GB, free: 1.367 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3197, allocations: 4 kB / 1.036 GB, free: 1.363 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.982e-05/0.3198, allocations: 15.98 kB / 1.036 GB, free: 1.348 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008209/0.3206, allocations: 1.766 MB / 1.038 GB, free: 15.51 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3206, allocations: 0 / 1.038 GB, free: 15.51 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.3221, allocations: 1.12 MB / 1.039 GB, free: 14.36 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003266/0.3224, allocations: 223.8 kB / 1.039 GB, free: 14.12 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.3225, allocations: 20.06 kB / 1.039 GB, free: 14.11 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000525/0.323, allocations: 59.86 kB / 1.039 GB, free: 14.05 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.3232, allocations: 47.88 kB / 1.039 GB, free: 14 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.031e-05/0.3232, allocations: 19.98 kB / 1.039 GB, free: 13.98 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0007182/0.3239, allocations: 0.5549 MB / 1.04 GB, free: 13.41 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1e-07/0.324, allocations: 0 / 1.04 GB, free: 13.41 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001318/0.3253, allocations: 459.2 kB / 1.04 GB, free: 12.96 MB / 0.6667 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.0007202/0.326, allocations: 341 kB / 1.04 GB, free: 12.63 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002276/0.3283, allocations: 1.039 MB / 1.041 GB, free: 11.57 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3283, allocations: 0 / 1.041 GB, free: 11.57 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0006472/0.329, allocations: 352.1 kB / 1.042 GB, free: 11.21 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.3312, allocations: 369.2 kB / 1.042 GB, free: 10.85 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.334, allocations: 1.712 MB / 1.044 GB, free: 9.094 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006088/0.3346, allocations: 0.9947 MB / 1.045 GB, free: 8.07 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0006553/0.3352, allocations: 154.1 kB / 1.045 GB, free: 7.918 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.3354, allocations: 71.41 kB / 1.045 GB, free: 7.848 MB / 0.6667 GB Notification: Performance of SimCode: time 5.51e-07/0.3354, allocations: 0 / 1.045 GB, free: 7.848 MB / 0.6667 GB Notification: Performance of Templates: time 0.02847/0.3639, allocations: 15.78 MB / 1.06 GB, free: 8.242 MB / 0.6823 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)