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.251/2.251, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001055/0.001055, allocations: 172.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.0008435/0.0008439, allocations: 99.89 kB / 0.9318 GB, free: 5.695 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.319e-05/3.322e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2681, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.104/1.372, allocations: 401.6 MB / 1.611 GB, free: 0.5742 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/1.373, allocations: 89.83 kB / 1.611 GB, free: 0.5273 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 1.4/2.773, allocations: 307.4 MB / 1.911 GB, free: 249.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.054e-06/2.773, allocations: 0 / 1.911 GB, free: 249.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001324/2.773, allocations: 27.98 kB / 1.911 GB, free: 249.6 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.002963/2.776, allocations: 1.252 MB / 1.912 GB, free: 248.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/2.776, allocations: 8.031 kB / 1.913 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004504/2.777, allocations: 122.6 kB / 1.913 GB, free: 248.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001637/2.778, allocations: 0.66 MB / 1.913 GB, free: 247.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.392e-05/2.778, allocations: 53.31 kB / 1.913 GB, free: 247.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001992/2.779, allocations: 64 kB / 1.913 GB, free: 247.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/2.78, allocations: 0.6508 MB / 1.914 GB, free: 246.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/2.78, allocations: 3.938 kB / 1.914 GB, free: 246.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.187e-05/2.78, allocations: 35.89 kB / 1.914 GB, free: 246.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/2.78, allocations: 12 kB / 1.914 GB, free: 246.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006947/2.78, allocations: 433 kB / 1.914 GB, free: 246.1 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.003723/2.784, allocations: 2.604 MB / 1.917 GB, free: 243.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/2.785, allocations: 336.3 kB / 1.917 GB, free: 243.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00025/2.785, allocations: 192.8 kB / 1.918 GB, free: 242.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002609/2.785, allocations: 348.4 kB / 1.918 GB, free: 242.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000395/2.786, allocations: 325.4 kB / 1.918 GB, free: 242.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=37): time 2.114e-06/2.786, allocations: 0 / 1.918 GB, free: 242.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=37): time 0.001048/2.787, allocations: 0.5629 MB / 1.919 GB, free: 241.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.945e-05/2.787, allocations: 243.6 kB / 1.919 GB, free: 241.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008521/2.788, allocations: 0.7305 MB / 1.92 GB, free: 240.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.515e-05/2.788, allocations: 41.7 kB / 1.92 GB, free: 240.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000256/2.788, allocations: 436.4 kB / 1.92 GB, free: 240 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.052e-05/2.788, allocations: 114.4 kB / 1.92 GB, free: 239.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/2.788, allocations: 12 kB / 1.92 GB, free: 239.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.243e-05/2.788, allocations: 326.5 kB / 1.921 GB, free: 239.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002982/2.789, allocations: 201.3 kB / 1.921 GB, free: 239.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004019/2.789, allocations: 401.5 kB / 1.921 GB, free: 238.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/2.789, allocations: 258.4 kB / 1.921 GB, free: 238.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/2.789, allocations: 4 kB / 1.921 GB, free: 238.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001132/2.79, allocations: 0.7523 MB / 1.922 GB, free: 237.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002588/2.791, allocations: 1.078 MB / 1.923 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/2.791, allocations: 0 / 1.923 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/2.791, allocations: 11.94 kB / 1.923 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009379/2.792, allocations: 151.8 kB / 1.923 GB, free: 236.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007602/2.793, allocations: 1.785 MB / 1.925 GB, free: 234.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009168/2.793, allocations: 123.4 kB / 1.925 GB, free: 234.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.922e-05/2.794, allocations: 35.98 kB / 1.925 GB, free: 234.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/2.794, allocations: 5.719 kB / 1.925 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009852/2.795, allocations: 0.6503 MB / 1.926 GB, free: 233.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/2.795, allocations: 7.984 kB / 1.926 GB, free: 233.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.958e-06/2.795, allocations: 4 kB / 1.926 GB, free: 233.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005108/2.795, allocations: 139.7 kB / 1.926 GB, free: 233.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/2.795, allocations: 12.28 kB / 1.926 GB, free: 233.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008224/2.796, allocations: 119.4 kB / 1.926 GB, free: 233.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.736e-05/2.796, allocations: 35.98 kB / 1.926 GB, free: 233.6 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.0002028/2.796, allocations: 177.2 kB / 1.926 GB, free: 233.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/2.796, allocations: 94.81 kB / 1.926 GB, free: 233.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/2.798, allocations: 0.6967 MB / 1.927 GB, free: 232.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/2.798, allocations: 12 kB / 1.927 GB, free: 232.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/2.798, allocations: 0 / 1.927 GB, free: 232.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/2.798, allocations: 7.984 kB / 1.927 GB, free: 232.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002077/2.8, allocations: 1.567 MB / 1.929 GB, free: 230.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/2.8, allocations: 0 / 1.929 GB, free: 230.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004035/2.8, allocations: 107.9 kB / 1.929 GB, free: 230.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/2.8, allocations: 4 kB / 1.929 GB, free: 230.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/2.8, allocations: 15.94 kB / 1.929 GB, free: 230.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005992/2.801, allocations: 1.77 MB / 1.93 GB, free: 228.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/2.801, allocations: 0 / 1.93 GB, free: 228.9 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/2.802, allocations: 1.197 MB / 1.932 GB, free: 227.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003994/2.803, allocations: 235.8 kB / 1.932 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/2.803, allocations: 15.98 kB / 1.932 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007899/2.804, allocations: 71.91 kB / 1.932 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/2.804, allocations: 51.92 kB / 1.932 GB, free: 227.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.891e-05/2.804, allocations: 23.98 kB / 1.932 GB, free: 227.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0007463/2.805, allocations: 0.5557 MB / 1.933 GB, free: 226.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.2e-07/2.805, allocations: 0 / 1.933 GB, free: 226.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001883/2.806, allocations: 0.4954 MB / 1.933 GB, free: 226.2 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.001339/2.808, allocations: 488.7 kB / 1.934 GB, free: 225.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001838/2.81, allocations: 0.9579 MB / 1.934 GB, free: 224.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/2.81, allocations: 4 kB / 1.934 GB, free: 224.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005375/2.81, allocations: 344.5 kB / 1.935 GB, free: 224.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001973/2.812, allocations: 385.6 kB / 1.935 GB, free: 224 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/2.814, allocations: 1.072 MB / 1.936 GB, free: 222.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004492/2.815, allocations: 1.022 MB / 1.937 GB, free: 221.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0009795/2.816, allocations: 213 kB / 1.937 GB, free: 221.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/2.816, allocations: 55.42 kB / 1.937 GB, free: 221.6 MB / 1.151 GB Notification: Performance of SimCode: time 6.92e-07/2.816, allocations: 0 / 1.937 GB, free: 221.6 MB / 1.151 GB Notification: Performance of Templates: time 0.03074/2.847, allocations: 18.96 MB / 1.956 GB, free: 202.8 MB / 1.151 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