Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 96.27 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009963/0.0009966, allocations: 178.3 kB / 16.57 MB, free: 6.859 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 223.2 MB / 240.5 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6742/0.6742, allocations: 113.8 MB / 405.4 MB, free: 4.582 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 8.594 kB / 493.1 MB, free: 8.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1914, allocations: 77.15 MB / 0.5568 GB, free: 11.61 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02343/0.2148, allocations: 19.57 MB / 0.5759 GB, free: 7.988 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009256/0.2241, allocations: 5.629 MB / 0.5814 GB, free: 2.348 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001234/0.2254, allocations: 23.81 kB / 0.5815 GB, free: 2.324 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.2266, allocations: 354.2 kB / 0.5818 GB, free: 1.977 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004831/0.2315, allocations: 1.137 MB / 0.5829 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3292/0.5607, allocations: 1.079 MB / 0.584 GB, free: 11.73 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003117/0.5638, allocations: 1.219 MB / 0.5852 GB, free: 11.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001406/0.5652, allocations: 0.5927 MB / 0.5857 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001725/0.567, allocations: 0.6553 MB / 0.5864 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009387/0.5679, allocations: 0.5088 MB / 0.5869 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001278/0.568, allocations: 32.03 kB / 0.5869 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002322/0.5704, allocations: 0.9014 MB / 0.5878 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002887/0.5707, allocations: 164.9 kB / 0.5879 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003633/0.5711, allocations: 197.6 kB / 0.5881 GB, free: 11.63 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002315/0.5734, allocations: 1.029 MB / 0.5891 GB, free: 11.54 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.5734, allocations: 0 / 0.5891 GB, free: 11.54 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.5734, allocations: 0 / 0.5891 GB, free: 11.54 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.554e-05/0.5734, allocations: 1.125 kB / 0.5891 GB, free: 11.54 MB / 446.1 MB 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.00409/0.5775, allocations: 1.257 MB / 0.5904 GB, free: 26.74 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.135e-05/0.5776, allocations: 10.05 kB / 0.5904 GB, free: 26.74 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004687/0.5781, allocations: 111.9 kB / 0.5905 GB, free: 26.68 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002518/0.5807, allocations: 0.6462 MB / 0.5911 GB, free: 26.39 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.5808, allocations: 46.12 kB / 0.5912 GB, free: 26.38 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002104/0.581, allocations: 64.33 kB / 0.5912 GB, free: 26.38 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001941/0.583, allocations: 0.6657 MB / 0.5919 GB, free: 26.24 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.583, allocations: 0.875 kB / 0.5919 GB, free: 26.24 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-05/0.5831, allocations: 26.92 kB / 0.5919 GB, free: 26.24 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.303e-05/0.5832, allocations: 14.25 kB / 0.5919 GB, free: 26.24 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001458/0.5846, allocations: 453.7 kB / 0.5923 GB, free: 26.23 MB / 462.1 MB 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.006774/0.5914, allocations: 2.539 MB / 0.5948 GB, free: 24.92 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/0.5925, allocations: 366.8 kB / 0.5952 GB, free: 24.89 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002989/0.5928, allocations: 346.9 kB / 0.5955 GB, free: 24.52 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000806/0.5936, allocations: 324.7 kB / 0.5958 GB, free: 24.39 MB / 462.1 MB Notification: Performance of pre-optimization done (n=37): time 4.869e-06/0.5937, allocations: 5.141 kB / 0.5958 GB, free: 24.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=37): time 0.002113/0.5958, allocations: 0.777 MB / 0.5966 GB, free: 24.18 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.581e-05/0.5959, allocations: 241.6 kB / 0.5968 GB, free: 23.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001973/0.5979, allocations: 0.8434 MB / 0.5976 GB, free: 23.74 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.598, allocations: 38.7 kB / 0.5977 GB, free: 23.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006377/0.5987, allocations: 433.8 kB / 0.5981 GB, free: 23.55 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.5988, allocations: 119.1 kB / 0.5982 GB, free: 23.47 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-05/0.5989, allocations: 13.12 kB / 0.5982 GB, free: 23.47 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002405/0.5992, allocations: 334.7 kB / 0.5985 GB, free: 23.16 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006596/0.5998, allocations: 202.3 kB / 0.5987 GB, free: 23.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007998/0.6006, allocations: 359.2 kB / 0.5991 GB, free: 23 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007237/0.6014, allocations: 264 kB / 0.5993 GB, free: 22.95 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.6014, allocations: 4.453 kB / 0.5993 GB, free: 22.95 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002051/0.6035, allocations: 0.7283 MB / 0.6 GB, free: 22.83 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000683/0.6042, allocations: 1.081 MB / 0.6011 GB, free: 21.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.6042, allocations: 3.156 kB / 0.6011 GB, free: 21.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.076e-05/0.6042, allocations: 6 kB / 0.6011 GB, free: 21.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.6057, allocations: 176.2 kB / 0.6013 GB, free: 21.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001508/0.6073, allocations: 1.778 MB / 0.603 GB, free: 19.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.6087, allocations: 117.4 kB / 0.6031 GB, free: 19.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/0.6088, allocations: 27.41 kB / 0.6031 GB, free: 19.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.6089, allocations: 5.719 kB / 0.6031 GB, free: 19.9 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001666/0.6105, allocations: 0.6367 MB / 0.6038 GB, free: 19.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.6106, allocations: 3.859 kB / 0.6038 GB, free: 19.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.6106, allocations: 5.594 kB / 0.6038 GB, free: 19.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007415/0.6113, allocations: 132.6 kB / 0.6039 GB, free: 19.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.757e-05/0.6114, allocations: 8 kB / 0.6039 GB, free: 19.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.6126, allocations: 107 kB / 0.604 GB, free: 19.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.6127, allocations: 26.22 kB / 0.604 GB, free: 19.82 MB / 462.1 MB 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.0007874/0.6135, allocations: 341.7 kB / 0.6044 GB, free: 19.61 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/0.6138, allocations: 98.44 kB / 0.6045 GB, free: 19.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.6158, allocations: 0.6799 MB / 0.6051 GB, free: 19.45 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.6158, allocations: 6.094 kB / 0.6051 GB, free: 19.45 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.6158, allocations: 1.281 kB / 0.6051 GB, free: 19.45 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.6159, allocations: 1.969 kB / 0.6051 GB, free: 19.45 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003546/0.6194, allocations: 1.524 MB / 0.6066 GB, free: 18.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.6194, allocations: 5.047 kB / 0.6066 GB, free: 18.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006083/0.6201, allocations: 94.03 kB / 0.6067 GB, free: 18.94 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.578e-05/0.6201, allocations: 7.125 kB / 0.6067 GB, free: 18.93 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.889e-05/0.6202, allocations: 16.45 kB / 0.6067 GB, free: 18.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.6214, allocations: 1.768 MB / 0.6085 GB, free: 17.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.6214, allocations: 1.375 kB / 0.6085 GB, free: 17.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002303/0.6237, allocations: 1.163 MB / 0.6096 GB, free: 16.72 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006451/0.6244, allocations: 235.5 kB / 0.6098 GB, free: 16.56 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002611/0.6246, allocations: 14.47 kB / 0.6098 GB, free: 16.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007052/0.6253, allocations: 53.48 kB / 0.6099 GB, free: 16.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.6255, allocations: 43.59 kB / 0.6099 GB, free: 16.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.974e-05/0.6256, allocations: 18.22 kB / 0.6099 GB, free: 16.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001027/0.6266, allocations: 0.5678 MB / 0.6105 GB, free: 16.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6266, allocations: 0 / 0.6105 GB, free: 16.45 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002233/0.6288, allocations: 459.1 kB / 0.6109 GB, free: 16.38 MB / 462.1 MB 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.001172/0.63, allocations: 347.3 kB / 0.6113 GB, free: 16.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00263/0.6327, allocations: 1.013 MB / 0.6123 GB, free: 16.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.321e-06/0.6327, allocations: 4.188 kB / 0.6123 GB, free: 16.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006452/0.6333, allocations: 359.8 kB / 0.6126 GB, free: 16.04 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/0.6356, allocations: 369.9 kB / 0.613 GB, free: 16.01 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003331/0.6389, allocations: 1.745 MB / 0.6147 GB, free: 15.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008098/0.6398, allocations: 1.021 MB / 0.6157 GB, free: 14.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009426/0.6407, allocations: 153.6 kB / 0.6158 GB, free: 14.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.641, allocations: 68.44 kB / 0.6159 GB, free: 14.38 MB / 462.1 MB Notification: Performance of SimCode: time 1.252e-06/0.641, allocations: 0 / 0.6159 GB, free: 14.38 MB / 462.1 MB Notification: Performance of Templates: time 0.03037/0.6714, allocations: 15.42 MB / 0.6309 GB, free: 6.516 MB / 462.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)