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.0008012/0.0008012, allocations: 99.05 kB / 16.02 MB, free: 80 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.001204/0.001204, allocations: 180.2 kB / 16.92 MB, free: 6.922 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.458/1.458, allocations: 223.2 MB / 240.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7757/0.7757, allocations: 115.4 MB / 407.5 MB, free: 2.855 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004687/0.0004687, allocations: 9.156 kB / 495.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1837, allocations: 77.51 MB / 0.5598 GB, free: 9.219 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02803/0.2118, allocations: 22.49 MB / 0.5818 GB, free: 2.645 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3439/0.5558, allocations: 6.476 MB / 0.5881 GB, free: 10.5 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001673/0.5575, allocations: 24.12 kB / 0.5881 GB, free: 10.5 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001535/0.5591, allocations: 325.6 kB / 0.5884 GB, free: 10.5 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004119/0.5632, allocations: 0.9956 MB / 0.5894 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.5667, allocations: 0.961 MB / 0.5903 GB, free: 10.41 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004471/0.5712, allocations: 2.497 MB / 0.5928 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001693/0.5729, allocations: 0.6326 MB / 0.5934 GB, free: 10.2 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00214/0.5751, allocations: 0.7313 MB / 0.5941 GB, free: 10.11 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001764/0.5769, allocations: 0.6852 MB / 0.5948 GB, free: 9.957 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003186/0.5772, allocations: 31.69 kB / 0.5948 GB, free: 9.957 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002891/0.5801, allocations: 0.9385 MB / 0.5957 GB, free: 9.902 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004165/0.5805, allocations: 173.2 kB / 0.5959 GB, free: 9.859 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.5817, allocations: 479.7 kB / 0.5963 GB, free: 9.66 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002848/0.5845, allocations: 1.415 MB / 0.5977 GB, free: 9.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.5846, allocations: 5.25 kB / 0.5977 GB, free: 9.426 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.5846, allocations: 0 / 0.5977 GB, free: 9.426 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.5846, allocations: 0 / 0.5977 GB, free: 9.426 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.002483/0.5871, allocations: 1.241 MB / 0.5989 GB, free: 24.61 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.5871, allocations: 9.344 kB / 0.5989 GB, free: 24.61 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.5873, allocations: 118.8 kB / 0.5991 GB, free: 24.55 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.5884, allocations: 0.6771 MB / 0.5997 GB, free: 24.21 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.182e-05/0.5885, allocations: 46.84 kB / 0.5998 GB, free: 24.21 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.5886, allocations: 63.16 kB / 0.5998 GB, free: 24.21 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.5898, allocations: 0.6721 MB / 0.6005 GB, free: 24.06 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.5898, allocations: 2.281 kB / 0.6005 GB, free: 24.06 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.209e-05/0.5899, allocations: 24.38 kB / 0.6005 GB, free: 24.06 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/0.5899, allocations: 17.69 kB / 0.6005 GB, free: 24.05 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008787/0.5908, allocations: 452.5 kB / 0.601 GB, free: 24.05 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.004229/0.5951, allocations: 2.555 MB / 0.6034 GB, free: 22.69 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008295/0.5959, allocations: 367.8 kB / 0.6038 GB, free: 22.66 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.5963, allocations: 190.8 kB / 0.604 GB, free: 22.65 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002829/0.5966, allocations: 349.2 kB / 0.6043 GB, free: 22.27 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006063/0.5972, allocations: 325.7 kB / 0.6046 GB, free: 22.15 MB / 462.1 MB Notification: Performance of pre-optimization done (n=37): time 1.923e-06/0.5972, allocations: 0 / 0.6046 GB, free: 22.15 MB / 462.1 MB Notification: Performance of matching and sorting (n=37): time 0.001496/0.5987, allocations: 0.7003 MB / 0.6053 GB, free: 22.02 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/0.5988, allocations: 251.3 kB / 0.6055 GB, free: 21.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/0.5999, allocations: 0.8455 MB / 0.6064 GB, free: 21.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.187e-05/0.6, allocations: 41.16 kB / 0.6064 GB, free: 21.37 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003699/0.6004, allocations: 438 kB / 0.6068 GB, free: 21.03 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.6005, allocations: 119.8 kB / 0.6069 GB, free: 20.94 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.028e-05/0.6006, allocations: 61.38 kB / 0.607 GB, free: 20.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.6007, allocations: 326.7 kB / 0.6073 GB, free: 20.59 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004542/0.6012, allocations: 214.5 kB / 0.6075 GB, free: 20.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005844/0.6018, allocations: 372.3 kB / 0.6079 GB, free: 20.28 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008405/0.6026, allocations: 0.5478 MB / 0.6084 GB, free: 19.96 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.6026, allocations: 0.9062 kB / 0.6084 GB, free: 19.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00127/0.6039, allocations: 0.7516 MB / 0.6091 GB, free: 19.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001332/0.6041, allocations: 201.3 kB / 0.6093 GB, free: 19.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.6041, allocations: 3.031 kB / 0.6093 GB, free: 19.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.6041, allocations: 10.19 kB / 0.6094 GB, free: 19.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.6051, allocations: 175.3 kB / 0.6095 GB, free: 19.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.6061, allocations: 1.779 MB / 0.6113 GB, free: 17.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008031/0.607, allocations: 112.8 kB / 0.6114 GB, free: 17.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.466e-05/0.607, allocations: 27.73 kB / 0.6114 GB, free: 17.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.557e-06/0.6071, allocations: 3.625 kB / 0.6114 GB, free: 17.57 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001135/0.6082, allocations: 0.6421 MB / 0.612 GB, free: 17.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.6082, allocations: 3.062 kB / 0.612 GB, free: 17.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.6082, allocations: 9.969 kB / 0.612 GB, free: 17.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005167/0.6088, allocations: 129.5 kB / 0.6122 GB, free: 17.33 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/0.6088, allocations: 13.92 kB / 0.6122 GB, free: 17.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007267/0.6095, allocations: 108 kB / 0.6123 GB, free: 17.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-05/0.6096, allocations: 31.78 kB / 0.6123 GB, free: 17.27 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 (mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,$whenCondition1,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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005442/0.6101, allocations: 339.9 kB / 0.6126 GB, free: 16.99 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.6103, allocations: 99.47 kB / 0.6127 GB, free: 16.94 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.6116, allocations: 0.6822 MB / 0.6134 GB, free: 16.67 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/0.6117, allocations: 8.25 kB / 0.6134 GB, free: 16.66 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.6117, allocations: 1.125 kB / 0.6134 GB, free: 16.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.6117, allocations: 3.984 kB / 0.6134 GB, free: 16.66 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002587/0.6143, allocations: 1.524 MB / 0.6149 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.6143, allocations: 4.344 kB / 0.6149 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003958/0.6147, allocations: 88.72 kB / 0.615 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.037e-05/0.6147, allocations: 3.375 kB / 0.615 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.6148, allocations: 18.09 kB / 0.615 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008854/0.6157, allocations: 1.769 MB / 0.6167 GB, free: 14.03 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.6157, allocations: 1.156 kB / 0.6167 GB, free: 14.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.6173, allocations: 1.126 MB / 0.6178 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003359/0.6176, allocations: 231.5 kB / 0.618 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.6178, allocations: 14.91 kB / 0.6181 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005799/0.6184, allocations: 53.06 kB / 0.6181 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.6185, allocations: 40.75 kB / 0.6182 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.6185, allocations: 22.28 kB / 0.6182 GB, free: 13.21 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008671/0.6194, allocations: 0.5751 MB / 0.6187 GB, free: 12.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.6194, allocations: 0 / 0.6187 GB, free: 12.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001737/0.6212, allocations: 467.9 kB / 0.6192 GB, free: 12.77 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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001026/0.6222, allocations: 338.3 kB / 0.6195 GB, free: 12.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002233/0.6244, allocations: 1.033 MB / 0.6205 GB, free: 12.08 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/0.6245, allocations: 2 kB / 0.6205 GB, free: 12.08 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000603/0.6251, allocations: 360.9 kB / 0.6209 GB, free: 11.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002364/0.6274, allocations: 367.4 kB / 0.6212 GB, free: 11.71 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.6302, allocations: 1.816 MB / 0.623 GB, free: 10.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008607/0.631, allocations: 1.001 MB / 0.624 GB, free: 9.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006983/0.6318, allocations: 155 kB / 0.6241 GB, free: 9.586 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001763/0.6319, allocations: 69.78 kB / 0.6242 GB, free: 9.57 MB / 462.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6319, allocations: 4 kB / 0.6242 GB, free: 9.566 MB / 462.1 MB Notification: Performance of Templates: time 0.02913/0.6611, allocations: 15.88 MB / 0.6397 GB, free: 13.25 MB / 478.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)