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.379/1.379, allocations: 249.3 MB / 261.8 MB, free: 5.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009319/0.0009319, allocations: 186.1 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.335/1.335, allocations: 205.2 MB / 0.572 GB, free: 10.69 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.0008195/0.0008195, allocations: 94.47 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.357e-05/3.359e-05, allocations: 4 kB / 0.788 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2023, allocations: 106.3 MB / 0.8918 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.355/1.558, allocations: 395 MB / 1.278 GB, free: 256 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/1.558, allocations: 96.81 kB / 1.278 GB, free: 256 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.5339/2.092, allocations: 293.3 MB / 1.564 GB, free: 29.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.493e-06/2.092, allocations: 0 / 1.564 GB, free: 29.3 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001143/2.092, allocations: 28.16 kB / 1.564 GB, free: 29.27 MB / 0.8698 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.002478/2.094, allocations: 1.24 MB / 1.565 GB, free: 27.98 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/2.094, allocations: 8.031 kB / 1.565 GB, free: 27.97 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003766/2.095, allocations: 118.6 kB / 1.565 GB, free: 27.86 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/2.096, allocations: 0.6717 MB / 1.566 GB, free: 27.14 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.511e-05/2.096, allocations: 49.31 kB / 1.566 GB, free: 27.09 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/2.097, allocations: 64 kB / 1.566 GB, free: 27.03 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009746/2.098, allocations: 0.6469 MB / 1.567 GB, free: 26.34 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/2.098, allocations: 4 kB / 1.567 GB, free: 26.34 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.032e-05/2.098, allocations: 28 kB / 1.567 GB, free: 26.31 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/2.098, allocations: 19.95 kB / 1.567 GB, free: 26.29 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006529/2.098, allocations: 429 kB / 1.567 GB, free: 25.87 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or 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.003433/2.102, allocations: 2.592 MB / 1.57 GB, free: 23.14 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004829/2.102, allocations: 335.8 kB / 1.57 GB, free: 22.8 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00024/2.103, allocations: 192.8 kB / 1.57 GB, free: 22.61 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002433/2.103, allocations: 348.4 kB / 1.571 GB, free: 22.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003846/2.103, allocations: 325.5 kB / 1.571 GB, free: 21.84 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=37): time 2.384e-06/2.103, allocations: 0 / 1.571 GB, free: 21.84 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37): time 0.0009545/2.104, allocations: 0.5551 MB / 1.572 GB, free: 21.27 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/2.104, allocations: 256.1 kB / 1.572 GB, free: 20.97 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007861/2.105, allocations: 0.7103 MB / 1.572 GB, free: 20.23 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.364e-05/2.105, allocations: 41.7 kB / 1.572 GB, free: 20.19 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/2.105, allocations: 444.4 kB / 1.573 GB, free: 19.75 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 8.173e-05/2.105, allocations: 114.3 kB / 1.573 GB, free: 19.64 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/2.105, allocations: 12 kB / 1.573 GB, free: 19.62 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.401e-05/2.106, allocations: 333.9 kB / 1.573 GB, free: 19.29 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002757/2.106, allocations: 193.3 kB / 1.574 GB, free: 19.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/2.106, allocations: 397.6 kB / 1.574 GB, free: 18.64 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003364/2.107, allocations: 261.8 kB / 1.574 GB, free: 18.38 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/2.107, allocations: 4 kB / 1.574 GB, free: 18.38 MB / 0.8698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001079/2.108, allocations: 0.7407 MB / 1.575 GB, free: 17.62 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002648/2.108, allocations: 1.084 MB / 1.576 GB, free: 16.45 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/2.108, allocations: 0 / 1.576 GB, free: 16.45 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.945e-05/2.108, allocations: 8 kB / 1.576 GB, free: 16.44 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008932/2.109, allocations: 171.7 kB / 1.576 GB, free: 16.27 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007749/2.11, allocations: 1.782 MB / 1.578 GB, free: 14.42 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009079/2.111, allocations: 127.3 kB / 1.578 GB, free: 14.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.16e-05/2.111, allocations: 31.98 kB / 1.578 GB, free: 14.27 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/2.111, allocations: 4 kB / 1.578 GB, free: 14.26 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009644/2.112, allocations: 0.6464 MB / 1.579 GB, free: 13.61 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/2.112, allocations: 4 kB / 1.579 GB, free: 13.61 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.195e-06/2.112, allocations: 8 kB / 1.579 GB, free: 13.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004884/2.112, allocations: 139.8 kB / 1.579 GB, free: 13.46 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/2.112, allocations: 4.344 kB / 1.579 GB, free: 13.46 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007879/2.113, allocations: 119.5 kB / 1.579 GB, free: 13.34 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.164e-05/2.113, allocations: 31.98 kB / 1.579 GB, free: 13.31 MB / 0.8698 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 () * 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.0001979/2.113, allocations: 172.1 kB / 1.579 GB, free: 13.13 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/2.113, allocations: 102.8 kB / 1.579 GB, free: 13.03 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/2.115, allocations: 0.6966 MB / 1.58 GB, free: 12.31 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/2.115, allocations: 4 kB / 1.58 GB, free: 12.31 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/2.115, allocations: 7.938 kB / 1.58 GB, free: 12.3 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/2.115, allocations: 7.984 kB / 1.58 GB, free: 12.29 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001915/2.117, allocations: 1.551 MB / 1.581 GB, free: 10.67 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/2.117, allocations: 8 kB / 1.581 GB, free: 10.66 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/2.117, allocations: 100 kB / 1.582 GB, free: 10.57 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/2.117, allocations: 0 / 1.582 GB, free: 10.57 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.915e-05/2.117, allocations: 15.98 kB / 1.582 GB, free: 10.55 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004807/2.118, allocations: 1.77 MB / 1.583 GB, free: 8.711 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/2.118, allocations: 7.969 kB / 1.583 GB, free: 8.703 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/2.119, allocations: 1.181 MB / 1.584 GB, free: 7.465 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000347/2.119, allocations: 235.7 kB / 1.585 GB, free: 7.215 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/2.119, allocations: 16 kB / 1.585 GB, free: 7.199 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006365/2.12, allocations: 75.92 kB / 1.585 GB, free: 7.125 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/2.12, allocations: 55.94 kB / 1.585 GB, free: 7.07 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.041e-05/2.12, allocations: 23.98 kB / 1.585 GB, free: 7.047 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.000587/2.121, allocations: 0.5513 MB / 1.585 GB, free: 6.48 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.7e-07/2.121, allocations: 0 / 1.585 GB, free: 6.48 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001502/2.122, allocations: 0.4953 MB / 1.586 GB, free: 5.984 MB / 0.8698 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) * 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.001006/2.123, allocations: 483.5 kB / 1.586 GB, free: 5.504 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001648/2.125, allocations: 0.9774 MB / 1.587 GB, free: 4.504 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/2.125, allocations: 0 / 1.587 GB, free: 4.504 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004786/2.125, allocations: 328.5 kB / 1.588 GB, free: 4.172 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001897/2.127, allocations: 367 kB / 1.588 GB, free: 3.812 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/2.129, allocations: 1.067 MB / 1.589 GB, free: 2.707 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/2.13, allocations: 1.018 MB / 1.59 GB, free: 1.66 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0008682/2.131, allocations: 217 kB / 1.59 GB, free: 1.445 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/2.131, allocations: 55.42 kB / 1.59 GB, free: 1.391 MB / 0.8698 GB Notification: Performance of SimCode: time 1.412e-06/2.131, allocations: 0 / 1.59 GB, free: 1.391 MB / 0.8698 GB Notification: Performance of Templates: time 0.4458/2.576, allocations: 19.03 MB / 1.609 GB, free: 213.9 MB / 0.8698 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