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.85/1.85, allocations: 288.4 MB / 303.4 MB, free: 8.168 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.001267/0.001267, allocations: 180.4 kB / 372 MB, free: 10.28 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.816/1.816, allocations: 205.4 MB / 0.6307 GB, free: 9.996 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.0009207/0.0009205, allocations: 89.95 kB / 0.7441 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005444/0.0005446, allocations: 16.67 kB / 0.867 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2282, allocations: 115.3 MB / 0.9796 GB, free: 27.67 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01973/0.2479, allocations: 21.55 MB / 1.001 GB, free: 6.047 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01447/0.2625, allocations: 9.114 MB / 1.01 GB, free: 12.92 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001545/0.2641, allocations: 31.69 kB / 1.01 GB, free: 12.89 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.2652, allocations: 294.3 kB / 1.01 GB, free: 12.6 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.003108/0.2683, allocations: 0.8768 MB / 1.011 GB, free: 11.72 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.002762/0.2711, allocations: 0.8902 MB / 1.012 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.002822/0.2739, allocations: 2.148 MB / 1.014 GB, free: 8.688 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009098/0.2748, allocations: 0.565 MB / 1.014 GB, free: 8.105 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001261/0.2761, allocations: 0.6846 MB / 1.015 GB, free: 7.418 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008199/0.2769, allocations: 0.6418 MB / 1.016 GB, free: 6.773 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 8.715e-05/0.277, allocations: 28 kB / 1.016 GB, free: 6.746 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001773/0.2788, allocations: 0.8656 MB / 1.016 GB, free: 5.879 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0001773/0.279, allocations: 167.2 kB / 1.017 GB, free: 5.715 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0002402/0.2793, allocations: 197.1 kB / 1.017 GB, free: 5.516 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.2804, allocations: 1.025 MB / 1.018 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.2805, allocations: 0 / 1.018 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.377e-06/0.2805, allocations: 0 / 1.018 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.178e-05/0.2805, allocations: 3.938 kB / 1.018 GB, free: 4.484 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.002098/0.2826, allocations: 1.243 MB / 1.019 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.2826, allocations: 12.03 kB / 1.019 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.2828, allocations: 110.7 kB / 1.019 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009892/0.2838, allocations: 0.6368 MB / 1.02 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.958e-05/0.2839, allocations: 45.31 kB / 1.02 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.592e-05/0.284, allocations: 68 kB / 1.02 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.2851, allocations: 0.6624 MB / 1.02 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.2851, allocations: 0 / 1.02 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.517e-05/0.2851, allocations: 28 kB / 1.02 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.2852, allocations: 12 kB / 1.02 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007913/0.286, allocations: 456.9 kB / 1.021 GB, free: 1.086 MB / 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.003365/0.2893, allocations: 2.546 MB / 1.023 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000706/0.2901, allocations: 367.2 kB / 1.024 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003181/0.2904, allocations: 196.8 kB / 1.024 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00029/0.2907, allocations: 336.4 kB / 1.024 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005137/0.2912, allocations: 321.5 kB / 1.025 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.225e-06/0.2912, allocations: 4 kB / 1.025 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001276/0.2925, allocations: 0.7051 MB / 1.025 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.2926, allocations: 243.3 kB / 1.026 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009311/0.2936, allocations: 0.8282 MB / 1.026 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.197e-05/0.2936, allocations: 41.7 kB / 1.026 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003089/0.2939, allocations: 432.3 kB / 1.027 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.188e-05/0.294, allocations: 114.4 kB / 1.027 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/0.2941, allocations: 16 kB / 1.027 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.2942, allocations: 326 kB / 1.027 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003623/0.2946, allocations: 205.1 kB / 1.027 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004923/0.2951, allocations: 367.6 kB / 1.028 GB, free: 9.68 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004347/0.2955, allocations: 255.7 kB / 1.028 GB, free: 9.422 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.2955, allocations: 0 / 1.028 GB, free: 9.422 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00114/0.2967, allocations: 0.729 MB / 1.029 GB, free: 8.676 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001382/0.2968, allocations: 202.5 kB / 1.029 GB, free: 8.434 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.2968, allocations: 4.547 kB / 1.029 GB, free: 8.43 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.2969, allocations: 4 kB / 1.029 GB, free: 8.426 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.298, allocations: 179.8 kB / 1.029 GB, free: 8.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000967/0.2989, allocations: 1.785 MB / 1.031 GB, free: 6.395 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007283/0.2997, allocations: 123.2 kB / 1.031 GB, free: 6.273 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.168e-05/0.2997, allocations: 31.94 kB / 1.031 GB, free: 6.242 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.376e-06/0.2998, allocations: 4 kB / 1.031 GB, free: 6.238 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001042/0.3008, allocations: 0.6348 MB / 1.032 GB, free: 5.598 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3008, allocations: 4 kB / 1.032 GB, free: 5.594 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.533e-06/0.3008, allocations: 4 kB / 1.032 GB, free: 5.59 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005057/0.3013, allocations: 131.8 kB / 1.032 GB, free: 5.461 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.3014, allocations: 4 kB / 1.032 GB, free: 5.457 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006306/0.302, allocations: 99.62 kB / 1.032 GB, free: 5.359 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.532e-05/0.3021, allocations: 31.98 kB / 1.032 GB, free: 5.328 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.0004308/0.3025, allocations: 344.2 kB / 1.032 GB, free: 4.977 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.3026, allocations: 98.83 kB / 1.032 GB, free: 4.879 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0012/0.3038, allocations: 0.6826 MB / 1.033 GB, free: 4.184 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.3038, allocations: 8 kB / 1.033 GB, free: 4.176 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3039, allocations: 4 kB / 1.033 GB, free: 4.172 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3039, allocations: 3.984 kB / 1.033 GB, free: 4.168 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/0.3058, allocations: 1.523 MB / 1.034 GB, free: 2.574 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.3059, allocations: 4 kB / 1.034 GB, free: 2.57 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000405/0.3063, allocations: 95.86 kB / 1.035 GB, free: 2.477 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.3063, allocations: 4 kB / 1.035 GB, free: 2.473 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.3063, allocations: 8 kB / 1.035 GB, free: 2.465 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008612/0.3072, allocations: 1.77 MB / 1.036 GB, free: 0.625 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3072, allocations: 4.219 kB / 1.036 GB, free: 0.6211 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.3086, allocations: 1.112 MB / 1.037 GB, free: 15.48 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002809/0.3089, allocations: 227.7 kB / 1.038 GB, free: 15.24 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.893e-05/0.309, allocations: 12 kB / 1.038 GB, free: 15.23 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005532/0.3096, allocations: 55.95 kB / 1.038 GB, free: 15.17 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.3097, allocations: 51.86 kB / 1.038 GB, free: 15.12 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.634e-05/0.3098, allocations: 15.98 kB / 1.038 GB, free: 15.11 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0006594/0.3104, allocations: 0.5588 MB / 1.038 GB, free: 14.54 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3104, allocations: 4 kB / 1.038 GB, free: 14.53 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001336/0.3118, allocations: 459.1 kB / 1.039 GB, free: 14.08 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.0007359/0.3125, allocations: 330.7 kB / 1.039 GB, free: 13.76 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002122/0.3146, allocations: 1.02 MB / 1.04 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3147, allocations: 0 / 1.04 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0006129/0.3153, allocations: 371 kB / 1.04 GB, free: 12.34 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.3173, allocations: 374.3 kB / 1.041 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.32, allocations: 1.722 MB / 1.042 GB, free: 10.21 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005539/0.3206, allocations: 0.9973 MB / 1.043 GB, free: 9.188 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0006056/0.3212, allocations: 150.2 kB / 1.044 GB, free: 9.039 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.3213, allocations: 67.41 kB / 1.044 GB, free: 8.973 MB / 0.6667 GB Notification: Performance of SimCode: time 9.32e-07/0.3214, allocations: 0 / 1.044 GB, free: 8.973 MB / 0.6667 GB Notification: Performance of Templates: time 0.02705/0.3484, allocations: 15.54 MB / 1.059 GB, free: 9.605 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)