Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi",fileNamePrefix="Buildings_latest_Buildings.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.001114/0.001114, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001293/0.001294, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.772/2.772, allocations: 436.5 MB / 0.7104 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003598, allocations: 8 kB / 0.8708 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8938/0.8942, allocations: 153.6 MB / 1.021 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02022/0.9145, allocations: 19.6 MB / 1.04 GB, free: 13.48 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.008622/0.9232, allocations: 5.642 MB / 1.045 GB, free: 7.828 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.9245, allocations: 19.81 kB / 1.045 GB, free: 7.809 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.9257, allocations: 354.2 kB / 1.046 GB, free: 7.461 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.003592/0.9293, allocations: 1.132 MB / 1.047 GB, free: 6.328 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002995/0.9323, allocations: 1.082 MB / 1.048 GB, free: 5.262 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002325/0.9346, allocations: 1.211 MB / 1.049 GB, free: 4.047 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009252/0.9355, allocations: 0.5923 MB / 1.05 GB, free: 3.449 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001309/0.9369, allocations: 0.6618 MB / 1.05 GB, free: 2.785 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007658/0.9376, allocations: 0.5057 MB / 1.051 GB, free: 2.277 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 8.757e-05/0.9377, allocations: 32 kB / 1.051 GB, free: 2.246 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001853/0.9396, allocations: 0.901 MB / 1.052 GB, free: 1.344 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.9398, allocations: 163.3 kB / 1.052 GB, free: 1.184 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000246/0.9401, allocations: 197.1 kB / 1.052 GB, free: 0.9844 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001317/0.9414, allocations: 1.033 MB / 1.053 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.9414, allocations: 0 / 1.053 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.024e-06/0.9414, allocations: 0 / 1.053 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.389e-05/0.9414, allocations: 0 / 1.053 GB, free: 15.95 MB / 0.8106 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.002222/0.9437, allocations: 1.247 MB / 1.054 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.9437, allocations: 11.98 kB / 1.054 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.9439, allocations: 118.6 kB / 1.054 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.945, allocations: 0.6445 MB / 1.055 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.772e-05/0.9451, allocations: 49.31 kB / 1.055 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.9452, allocations: 60 kB / 1.055 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.9463, allocations: 0.6701 MB / 1.056 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.9463, allocations: 0 / 1.056 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.288e-05/0.9464, allocations: 28 kB / 1.056 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.9464, allocations: 15.94 kB / 1.056 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007998/0.9472, allocations: 456.9 kB / 1.056 GB, free: 12.52 MB / 0.8106 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.003682/0.9509, allocations: 2.538 MB / 1.059 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007054/0.9516, allocations: 379.3 kB / 1.059 GB, free: 9.473 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00032/0.952, allocations: 344.4 kB / 1.06 GB, free: 9.062 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005849/0.9525, allocations: 321.1 kB / 1.06 GB, free: 8.715 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=37): time 2.454e-06/0.9526, allocations: 4 kB / 1.06 GB, free: 8.711 MB / 0.8106 GB Notification: Performance of matching and sorting (n=37): time 0.001466/0.954, allocations: 0.7794 MB / 1.061 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.9542, allocations: 251.3 kB / 1.061 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009663/0.9551, allocations: 0.8444 MB / 1.062 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/0.9552, allocations: 37.7 kB / 1.062 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003309/0.9555, allocations: 424.5 kB / 1.062 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.565e-05/0.9556, allocations: 122.3 kB / 1.062 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.9557, allocations: 8 kB / 1.062 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.9558, allocations: 334.5 kB / 1.063 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/0.9562, allocations: 197.1 kB / 1.063 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004678/0.9566, allocations: 363.7 kB / 1.063 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004255/0.9571, allocations: 255.7 kB / 1.063 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.9571, allocations: 0 / 1.063 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001282/0.9584, allocations: 0.733 MB / 1.064 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005172/0.9589, allocations: 1.094 MB / 1.065 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.9589, allocations: 4 kB / 1.065 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.9589, allocations: 4 kB / 1.065 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.96, allocations: 183.8 kB / 1.065 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.961, allocations: 1.782 MB / 1.067 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008231/0.9618, allocations: 111.3 kB / 1.067 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.498e-05/0.9619, allocations: 27.98 kB / 1.067 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.9619, allocations: 4 kB / 1.067 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001078/0.963, allocations: 0.6387 MB / 1.068 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.9631, allocations: 4 kB / 1.068 GB, free: 188 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.9631, allocations: 4 kB / 1.068 GB, free: 184 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004929/0.9636, allocations: 131.8 kB / 1.068 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.9636, allocations: 4 kB / 1.068 GB, free: 48 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006192/0.9642, allocations: 103.6 kB / 1.068 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.9643, allocations: 31.98 kB / 1.068 GB, free: 15.91 MB / 0.8262 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.0005028/0.9648, allocations: 348.2 kB / 1.068 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.9649, allocations: 90.88 kB / 1.068 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.9662, allocations: 0.6792 MB / 1.069 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.9662, allocations: 4 kB / 1.069 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.9662, allocations: 3.984 kB / 1.069 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.9662, allocations: 0 / 1.069 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00206/0.9683, allocations: 1.532 MB / 1.071 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.9683, allocations: 3.984 kB / 1.071 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004084/0.9687, allocations: 91.88 kB / 1.071 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.9687, allocations: 4 kB / 1.071 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.9688, allocations: 19.92 kB / 1.071 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00091/0.9697, allocations: 1.778 MB / 1.072 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.9697, allocations: 288 / 1.072 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/0.9712, allocations: 1.162 MB / 1.074 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003173/0.9715, allocations: 231.7 kB / 1.074 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.9716, allocations: 12 kB / 1.074 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000513/0.9722, allocations: 52.02 kB / 1.074 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.9723, allocations: 55.88 kB / 1.074 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.663e-05/0.9723, allocations: 15.98 kB / 1.074 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006761/0.973, allocations: 0.567 MB / 1.075 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.973, allocations: 0 / 1.075 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001328/0.9744, allocations: 459.1 kB / 1.075 GB, free: 8.578 MB / 0.8262 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.0007479/0.9751, allocations: 336.8 kB / 1.075 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002172/0.9773, allocations: 1.031 MB / 1.076 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.9773, allocations: 0 / 1.076 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006457/0.978, allocations: 352.7 kB / 1.077 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00199/0.98, allocations: 361.5 kB / 1.077 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002752/0.9827, allocations: 1.732 MB / 1.079 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005461/0.9833, allocations: 1.021 MB / 1.08 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0007123/0.984, allocations: 158 kB / 1.08 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.9842, allocations: 67.42 kB / 1.08 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of SimCode: time 1.222e-06/0.9842, allocations: 0 / 1.08 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of Templates: time 0.02686/1.011, allocations: 15.42 MB / 1.095 GB, free: 4.223 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches