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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.486/2.486, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001343/0.001343, allocations: 187.9 kB / 0.4902 GB, free: 2.238 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.68/1.68, allocations: 223.1 MB / 0.7992 GB, free: 14.66 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.001461/0.001461, allocations: 93.8 kB / 0.9396 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003661, allocations: 14.34 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3219, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.117/1.439, allocations: 401.7 MB / 1.621 GB, free: 11.21 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/1.439, allocations: 100.6 kB / 1.622 GB, free: 11.16 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.206/2.646, allocations: 308.2 MB / 1.923 GB, free: 353.1 MB / 1.167 GB Notification: Performance of FrontEnd: time 4.228e-06/2.646, allocations: 0 / 1.923 GB, free: 353.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 8.341e-05/2.646, allocations: 31.14 kB / 1.923 GB, free: 353.1 MB / 1.167 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.002583/2.648, allocations: 1.414 MB / 1.924 GB, free: 352.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/2.648, allocations: 9.969 kB / 1.924 GB, free: 352.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002122/2.649, allocations: 124.7 kB / 1.924 GB, free: 352.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/2.65, allocations: 0.6799 MB / 1.925 GB, free: 352 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.718e-05/2.65, allocations: 53.81 kB / 1.925 GB, free: 352 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.804e-05/2.65, allocations: 66.97 kB / 1.925 GB, free: 352 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/2.651, allocations: 0.6823 MB / 1.926 GB, free: 351.9 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/2.651, allocations: 0 / 1.926 GB, free: 351.9 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.351e-05/2.651, allocations: 24.81 kB / 1.926 GB, free: 351.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/2.651, allocations: 18.7 kB / 1.926 GB, free: 351.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000715/2.652, allocations: 467.8 kB / 1.926 GB, free: 351.9 MB / 1.167 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.003238/2.655, allocations: 2.612 MB / 1.929 GB, free: 350.6 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007455/2.656, allocations: 412 kB / 1.929 GB, free: 350.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002686/2.656, allocations: 350.2 kB / 1.929 GB, free: 350.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004786/2.657, allocations: 358.9 kB / 1.93 GB, free: 350 MB / 1.167 GB Notification: Performance of pre-optimization done (n=37): time 2.044e-06/2.657, allocations: 3.156 kB / 1.93 GB, free: 350 MB / 1.167 GB Notification: Performance of matching and sorting (n=37): time 0.001587/2.658, allocations: 0.8697 MB / 1.93 GB, free: 349.8 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.883e-05/2.658, allocations: 245.3 kB / 1.931 GB, free: 349.5 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007382/2.659, allocations: 0.7331 MB / 1.931 GB, free: 349.4 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 5.428e-05/2.659, allocations: 43.48 kB / 1.931 GB, free: 349.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/2.659, allocations: 434.8 kB / 1.932 GB, free: 349.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 8.486e-05/2.659, allocations: 122.8 kB / 1.932 GB, free: 349.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/2.66, allocations: 7.25 kB / 1.932 GB, free: 349.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.496e-05/2.66, allocations: 337.4 kB / 1.932 GB, free: 348.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003803/2.66, allocations: 223.8 kB / 1.933 GB, free: 348.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004769/2.66, allocations: 429.5 kB / 1.933 GB, free: 348.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004562/2.661, allocations: 288.9 kB / 1.933 GB, free: 348.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/2.661, allocations: 2.438 kB / 1.933 GB, free: 348.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001305/2.662, allocations: 0.8012 MB / 1.934 GB, free: 348.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002275/2.662, allocations: 1.082 MB / 1.935 GB, free: 347.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/2.663, allocations: 3.562 kB / 1.935 GB, free: 347.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/2.663, allocations: 9.969 kB / 1.935 GB, free: 347.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008855/2.663, allocations: 164.4 kB / 1.935 GB, free: 347.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007232/2.664, allocations: 1.781 MB / 1.937 GB, free: 345.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008487/2.665, allocations: 129.6 kB / 1.937 GB, free: 345.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.34e-05/2.665, allocations: 39 kB / 1.937 GB, free: 345.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/2.665, allocations: 4.281 kB / 1.937 GB, free: 345.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00113/2.666, allocations: 0.7079 MB / 1.938 GB, free: 345.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/2.666, allocations: 3.375 kB / 1.938 GB, free: 345.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.342e-06/2.666, allocations: 5.906 kB / 1.938 GB, free: 345.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005116/2.667, allocations: 140.2 kB / 1.938 GB, free: 345.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/2.667, allocations: 3.969 kB / 1.938 GB, free: 345.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006987/2.668, allocations: 123.8 kB / 1.938 GB, free: 345.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.001e-05/2.668, allocations: 25.19 kB / 1.938 GB, free: 345.5 MB / 1.167 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.0004953/2.668, allocations: 348.2 kB / 1.938 GB, free: 345.2 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/2.668, allocations: 104.8 kB / 1.939 GB, free: 345.2 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001309/2.67, allocations: 0.7487 MB / 1.939 GB, free: 345.1 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/2.67, allocations: 3.844 kB / 1.939 GB, free: 345.1 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/2.67, allocations: 0.75 kB / 1.939 GB, free: 345.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/2.67, allocations: 3.375 kB / 1.939 GB, free: 345.1 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002068/2.672, allocations: 1.623 MB / 1.941 GB, free: 344.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/2.672, allocations: 7.578 kB / 1.941 GB, free: 344.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004074/2.672, allocations: 102.2 kB / 1.941 GB, free: 344.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/2.672, allocations: 3.156 kB / 1.941 GB, free: 344.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.652e-05/2.672, allocations: 12.94 kB / 1.941 GB, free: 344.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005012/2.673, allocations: 1.768 MB / 1.943 GB, free: 342.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/2.673, allocations: 3.781 kB / 1.943 GB, free: 342.8 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/2.674, allocations: 1.281 MB / 1.944 GB, free: 342.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003323/2.675, allocations: 240.6 kB / 1.944 GB, free: 342.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/2.675, allocations: 21.75 kB / 1.944 GB, free: 342.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005842/2.675, allocations: 78.73 kB / 1.944 GB, free: 342.2 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.851e-05/2.675, allocations: 41.66 kB / 1.944 GB, free: 342.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.939e-05/2.675, allocations: 28.55 kB / 1.944 GB, free: 342.2 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0005549/2.676, allocations: 0.562 MB / 1.945 GB, free: 342.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.4e-07/2.676, allocations: 3.719 kB / 1.945 GB, free: 342.1 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001526/2.678, allocations: 0.496 MB / 1.945 GB, free: 342 MB / 1.167 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.0009157/2.678, allocations: 489.6 kB / 1.946 GB, free: 341.9 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001857/2.68, allocations: 1.017 MB / 1.947 GB, free: 341.7 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/2.68, allocations: 0 / 1.947 GB, free: 341.7 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005544/2.681, allocations: 362.4 kB / 1.947 GB, free: 341.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001739/2.683, allocations: 361.1 kB / 1.948 GB, free: 341.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/2.685, allocations: 1.743 MB / 1.949 GB, free: 340.8 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/2.686, allocations: 1.032 MB / 1.95 GB, free: 340.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0006173/2.686, allocations: 153 kB / 1.95 GB, free: 340.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/2.686, allocations: 64.59 kB / 1.95 GB, free: 340.1 MB / 1.167 GB Notification: Performance of SimCode: time 8.02e-07/2.686, allocations: 1.875 kB / 1.95 GB, free: 340.1 MB / 1.167 GB Notification: Performance of Templates: time 0.02483/2.711, allocations: 16.97 MB / 1.967 GB, free: 339.5 MB / 1.167 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