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.539/2.539, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001238/0.001238, allocations: 176.3 kB / 498.1 MB, free: 5.715 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.765/1.765, allocations: 223.2 MB / 0.7949 GB, free: 17.91 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.001011/0.00101, allocations: 92.34 kB / 0.9346 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004105/0.0004106, allocations: 9.266 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3293, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.069/1.398, allocations: 400.9 MB / 1.614 GB, free: 10.88 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/1.399, allocations: 97.05 kB / 1.614 GB, free: 10.83 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.283/2.681, allocations: 308.2 MB / 1.915 GB, free: 357.1 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.393e-06/2.681, allocations: 3.438 kB / 1.915 GB, free: 357.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.000108/2.681, allocations: 27.16 kB / 1.915 GB, free: 357.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.003035/2.684, allocations: 1.409 MB / 1.917 GB, free: 356.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/2.684, allocations: 13.34 kB / 1.917 GB, free: 356.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003384/2.685, allocations: 122.5 kB / 1.917 GB, free: 356.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/2.686, allocations: 0.6716 MB / 1.918 GB, free: 356.1 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.248e-05/2.686, allocations: 53.94 kB / 1.918 GB, free: 356.1 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/2.686, allocations: 71.5 kB / 1.918 GB, free: 356.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/2.688, allocations: 0.6845 MB / 1.918 GB, free: 355.9 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/2.688, allocations: 0 / 1.918 GB, free: 355.9 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.787e-05/2.688, allocations: 27.09 kB / 1.918 GB, free: 355.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/2.688, allocations: 19.7 kB / 1.918 GB, free: 355.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007595/2.688, allocations: 470 kB / 1.919 GB, free: 355.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.003503/2.692, allocations: 2.602 MB / 1.921 GB, free: 354.6 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007359/2.693, allocations: 416.7 kB / 1.922 GB, free: 354.6 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002725/2.693, allocations: 348.4 kB / 1.922 GB, free: 354.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004973/2.693, allocations: 358.4 kB / 1.923 GB, free: 354.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=37): time 3.015e-06/2.694, allocations: 0 / 1.923 GB, free: 354.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=37): time 0.001553/2.695, allocations: 0.8759 MB / 1.923 GB, free: 353.9 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.489e-05/2.695, allocations: 239.4 kB / 1.924 GB, free: 353.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008832/2.696, allocations: 0.7344 MB / 1.924 GB, free: 353.5 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 7.333e-05/2.696, allocations: 43.95 kB / 1.924 GB, free: 353.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003404/2.696, allocations: 443 kB / 1.925 GB, free: 353.3 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/2.697, allocations: 124.1 kB / 1.925 GB, free: 353.2 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.44e-05/2.697, allocations: 11.41 kB / 1.925 GB, free: 353.2 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.402e-05/2.697, allocations: 335.1 kB / 1.925 GB, free: 352.9 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003879/2.697, allocations: 224.5 kB / 1.925 GB, free: 352.9 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004672/2.698, allocations: 423.9 kB / 1.926 GB, free: 352.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004467/2.698, allocations: 285.8 kB / 1.926 GB, free: 352.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/2.698, allocations: 0 / 1.926 GB, free: 352.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001416/2.699, allocations: 0.798 MB / 1.927 GB, free: 352.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002446/2.7, allocations: 1.084 MB / 1.928 GB, free: 351.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/2.7, allocations: 3.969 kB / 1.928 GB, free: 351.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/2.7, allocations: 10.41 kB / 1.928 GB, free: 351.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008965/2.701, allocations: 162.7 kB / 1.928 GB, free: 351.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007283/2.701, allocations: 1.779 MB / 1.93 GB, free: 349.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009247/2.702, allocations: 134.5 kB / 1.93 GB, free: 349.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.473e-05/2.702, allocations: 39.72 kB / 1.93 GB, free: 349.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/2.702, allocations: 4.719 kB / 1.93 GB, free: 349.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001204/2.704, allocations: 0.7072 MB / 1.931 GB, free: 349.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/2.704, allocations: 3.812 kB / 1.931 GB, free: 349.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/2.704, allocations: 7.469 kB / 1.931 GB, free: 349.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005111/2.704, allocations: 132.9 kB / 1.931 GB, free: 349.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.497e-06/2.704, allocations: 7.469 kB / 1.931 GB, free: 349.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008438/2.705, allocations: 124.3 kB / 1.931 GB, free: 349.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-05/2.705, allocations: 32.75 kB / 1.931 GB, free: 349.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.0004834/2.706, allocations: 348.7 kB / 1.931 GB, free: 349.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/2.706, allocations: 96.36 kB / 1.931 GB, free: 349.2 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/2.707, allocations: 0.7603 MB / 1.932 GB, free: 349.1 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/2.707, allocations: 9.719 kB / 1.932 GB, free: 349.1 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/2.707, allocations: 0 / 1.932 GB, free: 349.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/2.707, allocations: 3.406 kB / 1.932 GB, free: 349.1 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00229/2.71, allocations: 1.628 MB / 1.934 GB, free: 348.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/2.71, allocations: 3.812 kB / 1.934 GB, free: 348.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004031/2.71, allocations: 95.69 kB / 1.934 GB, free: 348.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/2.71, allocations: 2.766 kB / 1.934 GB, free: 348.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.769e-05/2.71, allocations: 19.56 kB / 1.934 GB, free: 348.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005228/2.711, allocations: 1.761 MB / 1.936 GB, free: 346.9 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/2.711, allocations: 3.688 kB / 1.936 GB, free: 346.9 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/2.712, allocations: 1.278 MB / 1.937 GB, free: 346.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003868/2.713, allocations: 242.3 kB / 1.937 GB, free: 346.3 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/2.713, allocations: 15.19 kB / 1.937 GB, free: 346.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006265/2.713, allocations: 70.36 kB / 1.937 GB, free: 346.3 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/2.713, allocations: 47.55 kB / 1.937 GB, free: 346.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.175e-05/2.713, allocations: 27.52 kB / 1.937 GB, free: 346.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0005904/2.714, allocations: 0.5657 MB / 1.938 GB, free: 346.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 5.01e-07/2.714, allocations: 0 / 1.938 GB, free: 346.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001554/2.716, allocations: 0.5016 MB / 1.938 GB, free: 346.1 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.0009711/2.717, allocations: 485.6 kB / 1.939 GB, free: 345.9 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001857/2.718, allocations: 1.024 MB / 1.94 GB, free: 345.8 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/2.718, allocations: 2.906 kB / 1.94 GB, free: 345.8 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005579/2.719, allocations: 353.4 kB / 1.94 GB, free: 345.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/2.721, allocations: 372.8 kB / 1.94 GB, free: 345.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/2.723, allocations: 1.724 MB / 1.942 GB, free: 344.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/2.724, allocations: 1.019 MB / 1.943 GB, free: 344.2 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0006872/2.725, allocations: 154 kB / 1.943 GB, free: 344.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/2.725, allocations: 65.39 kB / 1.943 GB, free: 344.2 MB / 1.167 GB Notification: Performance of SimCode: time 5.91e-07/2.725, allocations: 0 / 1.943 GB, free: 344.2 MB / 1.167 GB Notification: Performance of Templates: time 0.02837/2.753, allocations: 16.96 MB / 1.96 GB, free: 343.7 MB / 1.167 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