Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.169/2.169, allocations: 251.1 MB / 266.7 MB, free: 11.63 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002001/0.002001, allocations: 183 kB / 326.3 MB, free: 2.848 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.57/2.57, allocations: 205.4 MB / 0.5772 GB, free: 20.77 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008732/0.0008731, allocations: 93.67 kB / 0.6817 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005162/0.0005164, allocations: 12.12 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1986/0.1992, allocations: 106.3 MB / 0.8995 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02684/0.2261, allocations: 21.58 MB / 0.9206 GB, free: 43.85 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01722/0.2434, allocations: 9.106 MB / 0.9295 GB, free: 34.73 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001459/0.2449, allocations: 31.69 kB / 0.9295 GB, free: 34.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.2462, allocations: 282.3 kB / 0.9298 GB, free: 34.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.003391/0.2496, allocations: 0.8757 MB / 0.9306 GB, free: 33.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.003753/0.2534, allocations: 0.8856 MB / 0.9315 GB, free: 32.66 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.003367/0.2567, allocations: 2.156 MB / 0.9336 GB, free: 30.5 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001191/0.258, allocations: 0.6001 MB / 0.9342 GB, free: 29.88 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001701/0.2597, allocations: 0.6846 MB / 0.9348 GB, free: 29.2 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001259/0.261, allocations: 0.6263 MB / 0.9354 GB, free: 28.57 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.000167/0.2612, allocations: 32 kB / 0.9355 GB, free: 28.54 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002425/0.2636, allocations: 0.8695 MB / 0.9363 GB, free: 27.66 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0004569/0.2642, allocations: 167.2 kB / 0.9365 GB, free: 27.5 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0004671/0.2646, allocations: 193.2 kB / 0.9367 GB, free: 27.3 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.00201/0.2667, allocations: 1.021 MB / 0.9377 GB, free: 26.28 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.2667, allocations: 0 / 0.9377 GB, free: 26.28 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.494e-06/0.2667, allocations: 0 / 0.9377 GB, free: 26.28 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.902e-05/0.2668, allocations: 0 / 0.9377 GB, free: 26.28 MB / 0.6042 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.0029/0.2697, allocations: 1.24 MB / 0.9389 GB, free: 24.98 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.2697, allocations: 8.031 kB / 0.9389 GB, free: 24.98 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002647/0.27, allocations: 115.5 kB / 0.939 GB, free: 24.86 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.2716, allocations: 0.6487 MB / 0.9396 GB, free: 24.18 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.149e-05/0.2717, allocations: 49.31 kB / 0.9397 GB, free: 24.12 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.2718, allocations: 64 kB / 0.9397 GB, free: 24.06 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.2733, allocations: 0.6624 MB / 0.9404 GB, free: 23.36 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.2734, allocations: 0 / 0.9404 GB, free: 23.36 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.318e-05/0.2734, allocations: 20 kB / 0.9404 GB, free: 23.34 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.2735, allocations: 19.98 kB / 0.9404 GB, free: 23.32 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.2747, allocations: 452.9 kB / 0.9409 GB, free: 22.88 MB / 0.6042 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.005014/0.2797, allocations: 2.538 MB / 0.9433 GB, free: 20.21 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.2808, allocations: 366.7 kB / 0.9437 GB, free: 19.84 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004961/0.2814, allocations: 196.7 kB / 0.9439 GB, free: 19.64 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002906/0.2817, allocations: 340.4 kB / 0.9442 GB, free: 19.24 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007313/0.2824, allocations: 325.9 kB / 0.9445 GB, free: 18.89 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 3.677e-06/0.2824, allocations: 0 / 0.9445 GB, free: 18.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001958/0.2844, allocations: 0.6993 MB / 0.9452 GB, free: 18.18 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.044e-05/0.2845, allocations: 247.2 kB / 0.9454 GB, free: 17.88 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001236/0.2857, allocations: 0.8281 MB / 0.9462 GB, free: 17.03 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001145/0.2859, allocations: 41.7 kB / 0.9463 GB, free: 16.98 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003648/0.2862, allocations: 424.4 kB / 0.9467 GB, free: 16.56 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.2864, allocations: 126.3 kB / 0.9468 GB, free: 16.43 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.403e-05/0.2865, allocations: 16.16 kB / 0.9468 GB, free: 16.42 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.951e-05/0.2865, allocations: 326 kB / 0.9471 GB, free: 16.09 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005971/0.2871, allocations: 197.1 kB / 0.9473 GB, free: 15.9 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007037/0.2879, allocations: 367.6 kB / 0.9477 GB, free: 15.48 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007/0.2886, allocations: 255.7 kB / 0.9479 GB, free: 15.23 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.2886, allocations: 0 / 0.9479 GB, free: 15.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001875/0.2905, allocations: 0.733 MB / 0.9486 GB, free: 14.48 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001134/0.2906, allocations: 198.3 kB / 0.9488 GB, free: 14.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.2906, allocations: 0 / 0.9488 GB, free: 14.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.2907, allocations: 8 kB / 0.9488 GB, free: 14.23 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/0.2925, allocations: 179.7 kB / 0.949 GB, free: 14.06 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000921/0.2934, allocations: 1.785 MB / 0.9507 GB, free: 12.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.2947, allocations: 107.4 kB / 0.9508 GB, free: 12.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.317e-05/0.2948, allocations: 24 kB / 0.9509 GB, free: 12.07 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.2948, allocations: 4 kB / 0.9509 GB, free: 12.07 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001648/0.2965, allocations: 0.6386 MB / 0.9515 GB, free: 11.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.2965, allocations: 8 kB / 0.9515 GB, free: 11.41 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.2965, allocations: 7.938 kB / 0.9515 GB, free: 11.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009442/0.2975, allocations: 136.1 kB / 0.9516 GB, free: 11.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.2975, allocations: 4 kB / 0.9516 GB, free: 11.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.2987, allocations: 103.4 kB / 0.9517 GB, free: 11.17 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.931e-05/0.2987, allocations: 27.94 kB / 0.9518 GB, free: 11.14 MB / 0.6042 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.0005561/0.2993, allocations: 350.6 kB / 0.9521 GB, free: 10.78 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.2995, allocations: 90.88 kB / 0.9522 GB, free: 10.69 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/0.3013, allocations: 0.6863 MB / 0.9529 GB, free: 9.992 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.3013, allocations: 7.938 kB / 0.9529 GB, free: 9.984 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3013, allocations: 0 / 0.9529 GB, free: 9.984 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00042/0.3018, allocations: 219.8 kB / 0.9531 GB, free: 9.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.302, allocations: 12 kB / 0.9531 GB, free: 9.738 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007821/0.3028, allocations: 59.84 kB / 0.9531 GB, free: 9.68 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.3029, allocations: 39.94 kB / 0.9532 GB, free: 9.641 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002338/0.3053, allocations: 0.971 MB / 0.9541 GB, free: 8.633 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002205/0.3075, allocations: 1.202 MB / 0.9553 GB, free: 7.41 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005849/0.3081, allocations: 253 kB / 0.9555 GB, free: 7.164 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0009476/0.3091, allocations: 0.5549 MB / 0.9561 GB, free: 6.598 MB / 0.6042 GB Notification: Performance of Backend: time 7.31e-07/0.3091, allocations: 4 kB / 0.9561 GB, free: 6.594 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.004658/0.3138, allocations: 1.168 MB / 0.9572 GB, free: 5.41 MB / 0.6042 GB Notification: Performance of SimCode: time 0.004977/0.3188, allocations: 2.336 MB / 0.9595 GB, free: 3.008 MB / 0.6042 GB Notification: Performance of Templates: time 0.04916/0.368, allocations: 17.2 MB / 0.9763 GB, free: 1.953 MB / 0.6198 GB make -j1 -f Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)