Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.646/2.646, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.00124/0.00124, allocations: 191.9 kB / 0.4902 GB, free: 2.301 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.644/1.644, allocations: 223.2 MB / 0.7992 GB, free: 15.69 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.00104/0.00104, allocations: 95.14 kB / 0.9396 GB, free: 2.867 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003921/0.0003921, allocations: 8.297 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.3403, allocations: 143 MB / 1.229 GB, free: 85.51 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.104/1.445, allocations: 400.3 MB / 1.62 GB, free: 8.887 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/1.445, allocations: 98.25 kB / 1.62 GB, free: 8.832 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.595/3.04, allocations: 438.9 MB / 2.049 GB, free: 263.6 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.082e-06/3.04, allocations: 0 / 2.049 GB, free: 263.6 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001561/3.04, allocations: 39.92 kB / 2.049 GB, free: 263.5 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004106/3.044, allocations: 1.523 MB / 2.05 GB, free: 262 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/3.044, allocations: 8.031 kB / 2.05 GB, free: 262 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007683/3.045, allocations: 150.5 kB / 2.05 GB, free: 261.8 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002462/3.047, allocations: 0.8408 MB / 2.051 GB, free: 260.9 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-05/3.047, allocations: 84.56 kB / 2.051 GB, free: 260.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004391/3.048, allocations: 120 kB / 2.052 GB, free: 260.7 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/3.049, allocations: 0.6278 MB / 2.052 GB, free: 260.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/3.049, allocations: 4 kB / 2.052 GB, free: 260.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.455e-05/3.049, allocations: 31.89 kB / 2.052 GB, free: 260 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/3.049, allocations: 12 kB / 2.052 GB, free: 260 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008655/3.05, allocations: 472.9 kB / 2.053 GB, free: 259.6 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.005728/3.056, allocations: 3.076 MB / 2.056 GB, free: 256.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005643/3.056, allocations: 335.8 kB / 2.056 GB, free: 256 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002573/3.057, allocations: 348.7 kB / 2.056 GB, free: 255.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.731e-05/3.057, allocations: 30.84 kB / 2.056 GB, free: 255.5 MB / 1.167 GB Notification: Performance of pre-optimization done (n=33): time 3.056e-06/3.057, allocations: 4 kB / 2.056 GB, free: 255.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=33): time 0.001479/3.058, allocations: 0.5584 MB / 2.057 GB, free: 255 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/3.058, allocations: 59.34 kB / 2.057 GB, free: 254.9 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/3.059, allocations: 0.7926 MB / 2.058 GB, free: 254.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002947/3.059, allocations: 57.7 kB / 2.058 GB, free: 254 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005058/3.06, allocations: 0.5502 MB / 2.058 GB, free: 253.5 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 8.561e-05/3.06, allocations: 106.5 kB / 2.058 GB, free: 253.4 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/3.06, allocations: 12 kB / 2.058 GB, free: 253.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.63e-05/3.06, allocations: 326 kB / 2.059 GB, free: 253 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003479/3.061, allocations: 181.2 kB / 2.059 GB, free: 252.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/3.062, allocations: 1.432 MB / 2.06 GB, free: 251 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005341/3.062, allocations: 312.5 kB / 2.061 GB, free: 250.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/3.062, allocations: 3.938 kB / 2.061 GB, free: 250.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001354/3.064, allocations: 0.6578 MB / 2.061 GB, free: 250 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002126/3.064, allocations: 0.8099 MB / 2.062 GB, free: 249.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/3.064, allocations: 4 kB / 2.062 GB, free: 249.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.825e-05/3.064, allocations: 4 kB / 2.062 GB, free: 249.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/3.065, allocations: 207.6 kB / 2.062 GB, free: 249 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/3.066, allocations: 2.957 MB / 2.065 GB, free: 245.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003517/3.07, allocations: 0.9173 MB / 2.066 GB, free: 245 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.91e-05/3.07, allocations: 31.98 kB / 2.066 GB, free: 244.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/3.07, allocations: 4 kB / 2.066 GB, free: 244.9 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008801/3.071, allocations: 0.5011 MB / 2.067 GB, free: 244.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/3.071, allocations: 0 / 2.067 GB, free: 244.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/3.071, allocations: 8 kB / 2.067 GB, free: 244.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006663/3.072, allocations: 159.8 kB / 2.067 GB, free: 244.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/3.072, allocations: 12.14 kB / 2.067 GB, free: 244.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003472/3.075, allocations: 0.8977 MB / 2.068 GB, free: 243.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.377e-05/3.075, allocations: 31.98 kB / 2.068 GB, free: 243.3 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007473/3.076, allocations: 330 kB / 2.068 GB, free: 243 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/3.076, allocations: 94.77 kB / 2.068 GB, free: 242.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/3.078, allocations: 0.5458 MB / 2.069 GB, free: 242.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/3.078, allocations: 10.92 kB / 2.069 GB, free: 242.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/3.078, allocations: 7.953 kB / 2.069 GB, free: 242.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/3.078, allocations: 0 / 2.069 GB, free: 242.3 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/3.08, allocations: 1.28 MB / 2.07 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/3.08, allocations: 3.953 kB / 2.07 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005376/3.08, allocations: 119.8 kB / 2.07 GB, free: 240.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/3.08, allocations: 4 kB / 2.07 GB, free: 240.9 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/3.08, allocations: 12 kB / 2.07 GB, free: 240.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009059/3.081, allocations: 2.95 MB / 2.073 GB, free: 237.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/3.081, allocations: 3.938 kB / 2.073 GB, free: 237.8 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008153/3.082, allocations: 0.6344 MB / 2.073 GB, free: 237.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004295/3.083, allocations: 235.6 kB / 2.074 GB, free: 236.8 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/3.083, allocations: 8 kB / 2.074 GB, free: 236.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006637/3.084, allocations: 67.86 kB / 2.074 GB, free: 236.8 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.877e-05/3.084, allocations: 23.97 kB / 2.074 GB, free: 236.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/3.084, allocations: 27.94 kB / 2.074 GB, free: 236.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0007668/3.084, allocations: 0.6006 MB / 2.074 GB, free: 236.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.4e-07/3.084, allocations: 0 / 2.074 GB, free: 236.1 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002367/3.087, allocations: 0.6127 MB / 2.075 GB, free: 235.5 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001148/3.088, allocations: 0.5015 MB / 2.075 GB, free: 235 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002493/3.09, allocations: 0.8198 MB / 2.076 GB, free: 234.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/3.09, allocations: 0 / 2.076 GB, free: 234.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005129/3.091, allocations: 240.2 kB / 2.076 GB, free: 233.9 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002277/3.093, allocations: 468.8 kB / 2.077 GB, free: 233.5 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/3.096, allocations: 1.795 MB / 2.079 GB, free: 231.7 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/3.096, allocations: 1.054 MB / 2.08 GB, free: 230.6 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.00157/3.098, allocations: 210.7 kB / 2.08 GB, free: 230.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002103/3.098, allocations: 75.42 kB / 2.08 GB, free: 230.3 MB / 1.167 GB Notification: Performance of SimCode: time 6.71e-07/3.098, allocations: 0 / 2.08 GB, free: 230.3 MB / 1.167 GB Notification: Performance of Templates: time 0.04017/3.138, allocations: 27.47 MB / 2.107 GB, free: 203.2 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches