Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.0009991/0.0009992, allocations: 100.1 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.0009732/0.0009734, 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.483/1.483, 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 9.1.2-maint.9.1.x/package.mo): time 2.476/2.476, allocations: 390.2 MB / 0.6653 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003865/0.0003866, allocations: 12 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8852/0.8856, allocations: 142.3 MB / 0.9535 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02132/0.907, allocations: 19.58 MB / 0.9726 GB, free: 8.688 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01091/0.918, allocations: 5.637 MB / 0.9781 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0016/0.9196, allocations: 23.5 kB / 0.9782 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001418/0.921, allocations: 348.4 kB / 0.9785 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.004427/0.9255, allocations: 1.137 MB / 0.9796 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.003656/0.9291, allocations: 1.093 MB / 0.9807 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003102/0.9323, allocations: 1.213 MB / 0.9819 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.9335, allocations: 0.5874 MB / 0.9824 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00171/0.9352, allocations: 0.6604 MB / 0.9831 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001239/0.9365, allocations: 0.5128 MB / 0.9836 GB, free: 388 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.9366, allocations: 31.94 kB / 0.9836 GB, free: 388 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002425/0.9391, allocations: 0.8983 MB / 0.9845 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.9393, allocations: 162.8 kB / 0.9846 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003628/0.9397, allocations: 199 kB / 0.9848 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001666/0.9413, allocations: 1.031 MB / 0.9858 GB, free: 15 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.9414, allocations: 0 / 0.9858 GB, free: 15 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.936e-06/0.9414, allocations: 0 / 0.9858 GB, free: 15 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.106e-05/0.9414, allocations: 0 / 0.9858 GB, free: 15 MB / 0.7481 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.002229/0.9436, allocations: 1.255 MB / 0.9871 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.9437, allocations: 8.031 kB / 0.9871 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001818/0.9439, allocations: 122.5 kB / 0.9872 GB, free: 13.56 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.945, allocations: 0.6368 MB / 0.9878 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.972e-05/0.9451, allocations: 49.31 kB / 0.9879 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-05/0.9452, allocations: 64 kB / 0.9879 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.9462, allocations: 0.6585 MB / 0.9886 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.9462, allocations: 3.938 kB / 0.9886 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.497e-05/0.9463, allocations: 24 kB / 0.9886 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.9463, allocations: 12 kB / 0.9886 GB, free: 12.03 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007546/0.9471, allocations: 464.8 kB / 0.989 GB, free: 11.58 MB / 0.7481 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.003372/0.9505, allocations: 2.538 MB / 0.9915 GB, free: 8.902 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006753/0.9511, allocations: 373.1 kB / 0.9919 GB, free: 8.531 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003132/0.9515, allocations: 348.4 kB / 0.9922 GB, free: 8.117 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005496/0.952, allocations: 313.7 kB / 0.9925 GB, free: 7.777 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=37): time 2.245e-06/0.952, allocations: 4 kB / 0.9925 GB, free: 7.773 MB / 0.7481 GB Notification: Performance of matching and sorting (n=37): time 0.001337/0.9534, allocations: 0.7815 MB / 0.9933 GB, free: 6.965 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.9535, allocations: 247.6 kB / 0.9935 GB, free: 6.668 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000952/0.9545, allocations: 0.8367 MB / 0.9943 GB, free: 5.801 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.457e-05/0.9545, allocations: 41.7 kB / 0.9944 GB, free: 5.754 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003387/0.9549, allocations: 428.4 kB / 0.9948 GB, free: 5.328 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.955, allocations: 122.3 kB / 0.9949 GB, free: 5.207 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.955, allocations: 12 kB / 0.9949 GB, free: 5.195 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.9552, allocations: 333.8 kB / 0.9952 GB, free: 4.863 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/0.9555, allocations: 205.1 kB / 0.9954 GB, free: 4.664 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000484/0.956, allocations: 359.6 kB / 0.9958 GB, free: 4.254 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004196/0.9565, allocations: 255.6 kB / 0.996 GB, free: 3.996 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.9565, allocations: 4 kB / 0.996 GB, free: 3.992 MB / 0.7481 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001132/0.9576, allocations: 0.729 MB / 0.9967 GB, free: 3.25 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004841/0.9581, allocations: 1.082 MB / 0.9978 GB, free: 2.078 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.9581, allocations: 11.98 kB / 0.9978 GB, free: 2.066 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.9582, allocations: 4 kB / 0.9978 GB, free: 2.062 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.9592, allocations: 175.8 kB / 0.998 GB, free: 1.891 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/0.9602, allocations: 1.778 MB / 0.9997 GB, free: 44 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008214/0.961, allocations: 111.3 kB / 0.9998 GB, free: 15.93 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.284e-05/0.9611, allocations: 27.98 kB / 0.9998 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.9611, allocations: 4 kB / 0.9998 GB, free: 15.9 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001018/0.9621, allocations: 0.6464 MB / 1 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.9622, allocations: 0 / 1 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.9622, allocations: 8 kB / 1 GB, free: 15.24 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004831/0.9627, allocations: 127.8 kB / 1.001 GB, free: 15.12 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.9627, allocations: 11.98 kB / 1.001 GB, free: 15.11 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006459/0.9633, allocations: 103.6 kB / 1.001 GB, free: 15 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/0.9634, allocations: 31.98 kB / 1.001 GB, free: 14.97 MB / 0.7637 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.0005368/0.9639, allocations: 343.9 kB / 1.001 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.9641, allocations: 94.83 kB / 1.001 GB, free: 14.53 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/0.9653, allocations: 0.6829 MB / 1.002 GB, free: 13.83 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.9653, allocations: 4 kB / 1.002 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.9653, allocations: 4.094 kB / 1.002 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.9653, allocations: 7.969 kB / 1.002 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/0.9674, allocations: 1.531 MB / 1.003 GB, free: 12.21 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.9674, allocations: 0 / 1.003 GB, free: 12.21 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.9678, allocations: 91.92 kB / 1.003 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.9678, allocations: 4 kB / 1.003 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-05/0.9678, allocations: 15.98 kB / 1.003 GB, free: 12.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007701/0.9686, allocations: 1.762 MB / 1.005 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.9686, allocations: 4.312 kB / 1.005 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.9701, allocations: 1.166 MB / 1.006 GB, free: 9.047 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003781/0.9705, allocations: 223.7 kB / 1.007 GB, free: 8.809 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.9706, allocations: 19.98 kB / 1.007 GB, free: 8.789 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005204/0.9711, allocations: 59.86 kB / 1.007 GB, free: 8.73 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.9713, allocations: 51.92 kB / 1.007 GB, free: 8.68 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-05/0.9713, allocations: 16 kB / 1.007 GB, free: 8.664 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0009182/0.9722, allocations: 0.567 MB / 1.007 GB, free: 8.086 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9722, allocations: 0 / 1.007 GB, free: 8.086 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001556/0.9738, allocations: 463.1 kB / 1.008 GB, free: 7.633 MB / 0.7637 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.0008993/0.9747, allocations: 342.1 kB / 1.008 GB, free: 7.301 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002306/0.977, allocations: 1.02 MB / 1.009 GB, free: 6.262 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.977, allocations: 0 / 1.009 GB, free: 6.262 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000663/0.9777, allocations: 364.1 kB / 1.009 GB, free: 5.895 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.9797, allocations: 370.4 kB / 1.01 GB, free: 5.535 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003045/0.9827, allocations: 1.737 MB / 1.011 GB, free: 3.758 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006769/0.9834, allocations: 1.021 MB / 1.012 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.000684/0.9841, allocations: 154 kB / 1.013 GB, free: 2.559 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.9843, allocations: 67.42 kB / 1.013 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of SimCode: time 1.443e-06/0.9843, allocations: 0 / 1.013 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of Templates: time 0.03082/1.015, allocations: 15.41 MB / 1.028 GB, free: 3.281 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches