Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.38/1.38, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00122/0.00122, allocations: 183.6 kB / 326.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.887/1.887, allocations: 205.4 MB / 0.5775 GB, free: 20.58 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009489/0.0009488, allocations: 102.3 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003688, allocations: 12.69 kB / 0.7962 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.2082, allocations: 106.3 MB / 0.9001 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8027/1.011, allocations: 395.1 MB / 1.286 GB, free: 5.164 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/1.011, allocations: 105.4 kB / 1.286 GB, free: 5.105 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 0.9381/1.949, allocations: 294.1 MB / 1.573 GB, free: 181.3 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.383e-06/1.949, allocations: 0 / 1.573 GB, free: 181.3 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.552e-05/1.95, allocations: 28 kB / 1.573 GB, free: 181.2 MB / 0.8855 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.002529/1.952, allocations: 1.407 MB / 1.575 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/1.952, allocations: 8.031 kB / 1.575 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002565/1.952, allocations: 122.6 kB / 1.575 GB, free: 179.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/1.954, allocations: 0.6766 MB / 1.575 GB, free: 178.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.201e-05/1.954, allocations: 49.31 kB / 1.575 GB, free: 178.9 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/1.954, allocations: 64 kB / 1.576 GB, free: 178.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009426/1.955, allocations: 0.6819 MB / 1.576 GB, free: 178.1 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/1.955, allocations: 7.938 kB / 1.576 GB, free: 178.1 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.247e-05/1.955, allocations: 27.94 kB / 1.576 GB, free: 178.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/1.955, allocations: 19.95 kB / 1.576 GB, free: 178 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006998/1.956, allocations: 464.9 kB / 1.577 GB, free: 177.6 MB / 0.8855 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.003/1.959, allocations: 2.608 MB / 1.579 GB, free: 174.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006606/1.959, allocations: 403.8 kB / 1.58 GB, free: 174.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002047/1.96, allocations: 352.4 kB / 1.58 GB, free: 174 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004328/1.96, allocations: 357.2 kB / 1.58 GB, free: 173.6 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=37): time 1.893e-06/1.96, allocations: 0 / 1.58 GB, free: 173.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=37): time 0.001359/1.961, allocations: 0.8693 MB / 1.581 GB, free: 172.7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/1.961, allocations: 247.8 kB / 1.581 GB, free: 172.4 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006726/1.962, allocations: 0.7217 MB / 1.582 GB, free: 171.7 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.079e-05/1.962, allocations: 41.7 kB / 1.582 GB, free: 171.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002196/1.962, allocations: 444.3 kB / 1.583 GB, free: 171.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 6.997e-05/1.963, allocations: 118.4 kB / 1.583 GB, free: 171.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.907e-05/1.963, allocations: 12 kB / 1.583 GB, free: 171.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 4.306e-05/1.963, allocations: 329.9 kB / 1.583 GB, free: 170.8 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003586/1.963, allocations: 229.1 kB / 1.583 GB, free: 170.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004297/1.963, allocations: 421.4 kB / 1.584 GB, free: 170 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003905/1.964, allocations: 287.7 kB / 1.584 GB, free: 169.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/1.964, allocations: 4.547 kB / 1.584 GB, free: 169.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001125/1.965, allocations: 0.7992 MB / 1.585 GB, free: 168.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001752/1.965, allocations: 1.088 MB / 1.586 GB, free: 167.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/1.965, allocations: 8 kB / 1.586 GB, free: 167.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/1.965, allocations: 4 kB / 1.586 GB, free: 167.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008013/1.966, allocations: 167.6 kB / 1.586 GB, free: 167.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005997/1.967, allocations: 1.777 MB / 1.588 GB, free: 165.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007293/1.967, allocations: 131.5 kB / 1.588 GB, free: 165.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-05/1.967, allocations: 31.98 kB / 1.588 GB, free: 165.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.233e-06/1.967, allocations: 4 kB / 1.588 GB, free: 165.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001002/1.968, allocations: 0.7088 MB / 1.589 GB, free: 164.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/1.968, allocations: 4 kB / 1.589 GB, free: 164.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.292e-06/1.968, allocations: 8.281 kB / 1.589 GB, free: 164.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004697/1.969, allocations: 135.9 kB / 1.589 GB, free: 164.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/1.969, allocations: 7.938 kB / 1.589 GB, free: 164.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006333/1.97, allocations: 119.5 kB / 1.589 GB, free: 164.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.644e-05/1.97, allocations: 27.98 kB / 1.589 GB, free: 164.6 MB / 0.8855 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.0002997/1.97, allocations: 350.7 kB / 1.589 GB, free: 164.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.737e-05/1.97, allocations: 94.83 kB / 1.589 GB, free: 164.1 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/1.971, allocations: 0.755 MB / 1.59 GB, free: 163.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/1.971, allocations: 8 kB / 1.59 GB, free: 163.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/1.971, allocations: 0 / 1.59 GB, free: 163.3 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/1.971, allocations: 0 / 1.59 GB, free: 163.3 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001718/1.973, allocations: 1.611 MB / 1.592 GB, free: 161.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/1.973, allocations: 3.938 kB / 1.592 GB, free: 161.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/1.973, allocations: 95.81 kB / 1.592 GB, free: 161.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/1.973, allocations: 8.125 kB / 1.592 GB, free: 161.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.395e-05/1.973, allocations: 19.98 kB / 1.592 GB, free: 161.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004002/1.974, allocations: 1.762 MB / 1.593 GB, free: 159.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/1.974, allocations: 3.984 kB / 1.593 GB, free: 159.7 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/1.975, allocations: 1.282 MB / 1.595 GB, free: 158.4 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002489/1.975, allocations: 235.7 kB / 1.595 GB, free: 158.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.812e-05/1.975, allocations: 16 kB / 1.595 GB, free: 158.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005365/1.976, allocations: 68 kB / 1.595 GB, free: 158 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.517e-05/1.976, allocations: 48.02 kB / 1.595 GB, free: 158 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/1.976, allocations: 27.98 kB / 1.595 GB, free: 157.9 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0004711/1.977, allocations: 0.5549 MB / 1.596 GB, free: 157.4 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/1.977, allocations: 0 / 1.596 GB, free: 157.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001174/1.978, allocations: 0.4953 MB / 1.596 GB, free: 156.9 MB / 0.8855 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.0006872/1.979, allocations: 478.3 kB / 1.596 GB, free: 156.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001583/1.98, allocations: 1.02 MB / 1.597 GB, free: 155.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/1.98, allocations: 4 kB / 1.597 GB, free: 155.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004852/1.981, allocations: 355.7 kB / 1.598 GB, free: 155 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001554/1.982, allocations: 383.5 kB / 1.598 GB, free: 154.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/1.984, allocations: 1.702 MB / 1.6 GB, free: 152.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/1.984, allocations: 1.021 MB / 1.601 GB, free: 151.9 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.000479/1.985, allocations: 153.9 kB / 1.601 GB, free: 151.7 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/1.985, allocations: 67.41 kB / 1.601 GB, free: 151.6 MB / 0.8855 GB Notification: Performance of SimCode: time 2.91e-07/1.985, allocations: 0 / 1.601 GB, free: 151.6 MB / 0.8855 GB Notification: Performance of Templates: time 0.02141/2.006, allocations: 17.02 MB / 1.618 GB, free: 134.8 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches