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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.295/2.295, allocations: 387.1 MB / 399.7 MB, free: 9.453 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 183 kB / 492.3 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.612/1.612, allocations: 221.3 MB / 0.7871 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008805/0.0008806, allocations: 94.58 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.136e-05/3.167e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2792, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.057/1.337, allocations: 400.8 MB / 1.604 GB, free: 13.21 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/1.337, allocations: 98.66 kB / 1.604 GB, free: 13.16 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.317/2.654, allocations: 307.4 MB / 1.904 GB, free: 303.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.392e-06/2.654, allocations: 4 kB / 1.904 GB, free: 303.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001179/2.654, allocations: 31.98 kB / 1.904 GB, free: 303 MB / 1.151 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.002581/2.657, allocations: 1.237 MB / 1.905 GB, free: 301.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/2.657, allocations: 12.03 kB / 1.905 GB, free: 301.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004214/2.657, allocations: 122.5 kB / 1.905 GB, free: 301.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001474/2.659, allocations: 0.6678 MB / 1.906 GB, free: 300.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.074e-05/2.659, allocations: 49.31 kB / 1.906 GB, free: 300.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/2.659, allocations: 64 kB / 1.906 GB, free: 300.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009957/2.66, allocations: 0.6547 MB / 1.907 GB, free: 300.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/2.66, allocations: 3.938 kB / 1.907 GB, free: 300.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.003e-05/2.66, allocations: 24 kB / 1.907 GB, free: 300.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/2.66, allocations: 15.95 kB / 1.907 GB, free: 300.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006293/2.661, allocations: 433 kB / 1.907 GB, free: 299.6 MB / 1.151 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.003571/2.664, allocations: 2.601 MB / 1.91 GB, free: 296.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000497/2.665, allocations: 344.5 kB / 1.91 GB, free: 296.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002483/2.665, allocations: 197.3 kB / 1.91 GB, free: 296.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002572/2.665, allocations: 340.4 kB / 1.911 GB, free: 295.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003896/2.666, allocations: 333.2 kB / 1.911 GB, free: 295.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=37): time 2.895e-06/2.666, allocations: 0 / 1.911 GB, free: 295.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=37): time 0.0009873/2.667, allocations: 0.5667 MB / 1.912 GB, free: 295 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/2.667, allocations: 243.5 kB / 1.912 GB, free: 294.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008148/2.668, allocations: 0.7228 MB / 1.913 GB, free: 294 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.61e-05/2.668, allocations: 41.7 kB / 1.913 GB, free: 293.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002564/2.668, allocations: 440.4 kB / 1.913 GB, free: 293.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 8.865e-05/2.668, allocations: 118.3 kB / 1.913 GB, free: 293.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.092e-05/2.668, allocations: 12 kB / 1.913 GB, free: 293.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.019e-05/2.668, allocations: 333.9 kB / 1.913 GB, free: 293 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002875/2.668, allocations: 197.3 kB / 1.914 GB, free: 292.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/2.669, allocations: 397.6 kB / 1.914 GB, free: 292.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/2.669, allocations: 258.5 kB / 1.914 GB, free: 292.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/2.669, allocations: 0 / 1.914 GB, free: 292.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00105/2.67, allocations: 0.7446 MB / 1.915 GB, free: 291.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002137/2.67, allocations: 1.083 MB / 1.916 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/2.67, allocations: 0 / 1.916 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/2.671, allocations: 8 kB / 1.916 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008786/2.671, allocations: 159.7 kB / 1.916 GB, free: 290 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006586/2.672, allocations: 1.789 MB / 1.918 GB, free: 288.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008338/2.673, allocations: 135.5 kB / 1.918 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.049e-05/2.673, allocations: 31.98 kB / 1.918 GB, free: 288 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/2.673, allocations: 4 kB / 1.918 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008815/2.674, allocations: 0.6542 MB / 1.919 GB, free: 287.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/2.674, allocations: 352 / 1.919 GB, free: 287.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.164e-06/2.674, allocations: 12 kB / 1.919 GB, free: 287.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004911/2.674, allocations: 135.8 kB / 1.919 GB, free: 287.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/2.674, allocations: 8 kB / 1.919 GB, free: 287.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006512/2.675, allocations: 111.5 kB / 1.919 GB, free: 287.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-05/2.675, allocations: 31.98 kB / 1.919 GB, free: 287 MB / 1.151 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.0001505/2.675, allocations: 186.5 kB / 1.919 GB, free: 286.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.908e-05/2.675, allocations: 102.7 kB / 1.919 GB, free: 286.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/2.677, allocations: 0.6926 MB / 1.92 GB, free: 286 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/2.677, allocations: 4 kB / 1.92 GB, free: 286 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/2.677, allocations: 0 / 1.92 GB, free: 286 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/2.677, allocations: 3.984 kB / 1.92 GB, free: 286 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/2.679, allocations: 1.572 MB / 1.922 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/2.679, allocations: 0 / 1.922 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004081/2.679, allocations: 99.8 kB / 1.922 GB, free: 284.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/2.679, allocations: 4 kB / 1.922 GB, free: 284.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.566e-05/2.679, allocations: 12 kB / 1.922 GB, free: 284.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005181/2.68, allocations: 1.774 MB / 1.923 GB, free: 282.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/2.68, allocations: 0 / 1.923 GB, free: 282.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/2.681, allocations: 1.2 MB / 1.925 GB, free: 281.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003005/2.681, allocations: 231.8 kB / 1.925 GB, free: 280.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/2.681, allocations: 19.98 kB / 1.925 GB, free: 280.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006278/2.682, allocations: 71.91 kB / 1.925 GB, free: 280.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/2.682, allocations: 51.86 kB / 1.925 GB, free: 280.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.1e-05/2.682, allocations: 23.98 kB / 1.925 GB, free: 280.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0006033/2.683, allocations: 0.5557 MB / 1.925 GB, free: 280.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.51e-07/2.683, allocations: 4 kB / 1.925 GB, free: 280.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001509/2.684, allocations: 0.4992 MB / 1.926 GB, free: 279.7 MB / 1.151 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.001032/2.685, allocations: 492.2 kB / 1.926 GB, free: 279.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001614/2.687, allocations: 0.9667 MB / 1.927 GB, free: 278.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/2.687, allocations: 4 kB / 1.927 GB, free: 278.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004459/2.687, allocations: 339.1 kB / 1.928 GB, free: 277.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/2.689, allocations: 364.5 kB / 1.928 GB, free: 277.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/2.691, allocations: 1.064 MB / 1.929 GB, free: 276.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/2.692, allocations: 1.026 MB / 1.93 GB, free: 275.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0008952/2.692, allocations: 217 kB / 1.93 GB, free: 275.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/2.693, allocations: 51.42 kB / 1.93 GB, free: 275.1 MB / 1.151 GB Notification: Performance of SimCode: time 8.81e-07/2.693, allocations: 0 / 1.93 GB, free: 275.1 MB / 1.151 GB Notification: Performance of Templates: time 0.02722/2.72, allocations: 18.95 MB / 1.949 GB, free: 256.3 MB / 1.151 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