Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001006, allocations: 99 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009506/0.0009506, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.771/2.771, allocations: 436.5 MB / 0.7104 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003376, allocations: 8 kB / 0.8708 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8724/0.8727, allocations: 153.6 MB / 1.021 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01547/0.8883, allocations: 14.75 MB / 1.035 GB, free: 2.312 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006741/0.8951, allocations: 4.232 MB / 1.039 GB, free: 14.07 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000523/0.8956, allocations: 11.94 kB / 1.039 GB, free: 14.05 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009014/0.8965, allocations: 238.8 kB / 1.04 GB, free: 13.82 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001466/0.898, allocations: 0.5569 MB / 1.04 GB, free: 13.26 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002086/0.9001, allocations: 0.7589 MB / 1.041 GB, free: 12.52 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0009235/0.901, allocations: 0.5895 MB / 1.041 GB, free: 11.93 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004019/0.9015, allocations: 261.2 kB / 1.042 GB, free: 11.68 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005505/0.902, allocations: 342.8 kB / 1.042 GB, free: 11.34 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/0.9023, allocations: 211.1 kB / 1.042 GB, free: 11.13 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.244e-05/0.9024, allocations: 19.94 kB / 1.042 GB, free: 11.11 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008838/0.9033, allocations: 459.2 kB / 1.043 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.9034, allocations: 107.6 kB / 1.043 GB, free: 10.56 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 9.454e-05/0.9035, allocations: 117.4 kB / 1.043 GB, free: 10.44 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006686/0.9042, allocations: 0.5456 MB / 1.043 GB, free: 9.891 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.9042, allocations: 0 / 1.043 GB, free: 9.891 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.844e-06/0.9042, allocations: 3.938 kB / 1.043 GB, free: 9.887 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.9042, allocations: 0 / 1.043 GB, free: 9.887 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001185/0.9054, allocations: 0.7824 MB / 1.044 GB, free: 9.051 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.9054, allocations: 11.98 kB / 1.044 GB, free: 9.039 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.9056, allocations: 63.28 kB / 1.044 GB, free: 8.977 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006069/0.9062, allocations: 424.9 kB / 1.045 GB, free: 8.52 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.9063, allocations: 20.56 kB / 1.045 GB, free: 8.5 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/0.9063, allocations: 31.98 kB / 1.045 GB, free: 8.469 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004963/0.9068, allocations: 290.2 kB / 1.045 GB, free: 8.168 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.9068, allocations: 0 / 1.045 GB, free: 8.168 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.9069, allocations: 8 kB / 1.045 GB, free: 8.16 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.9069, allocations: 8 kB / 1.045 GB, free: 8.152 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/0.9073, allocations: 202.1 kB / 1.045 GB, free: 7.957 MB / 0.795 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.001853/0.9092, allocations: 1.488 MB / 1.047 GB, free: 6.355 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.9095, allocations: 165.1 kB / 1.047 GB, free: 6.188 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001573/0.9111, allocations: 1.284 MB / 1.048 GB, free: 4.711 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.9111, allocations: 38.5 kB / 1.048 GB, free: 4.664 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.472e-06/0.9111, allocations: 0 / 1.048 GB, free: 4.664 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0006144/0.9118, allocations: 275.5 kB / 1.048 GB, free: 4.391 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.9118, allocations: 51.41 kB / 1.048 GB, free: 4.328 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006233/0.9124, allocations: 0.577 MB / 1.049 GB, free: 3.738 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/0.9125, allocations: 37.64 kB / 1.049 GB, free: 3.695 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.9127, allocations: 272 kB / 1.049 GB, free: 3.426 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.28e-05/0.9127, allocations: 51.3 kB / 1.049 GB, free: 3.375 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/0.9128, allocations: 8 kB / 1.049 GB, free: 3.367 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.9129, allocations: 358.8 kB / 1.05 GB, free: 3.008 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.9131, allocations: 76.52 kB / 1.05 GB, free: 2.934 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.9134, allocations: 214.7 kB / 1.05 GB, free: 2.676 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.9136, allocations: 105.4 kB / 1.05 GB, free: 2.574 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.9136, allocations: 0 / 1.05 GB, free: 2.574 MB / 0.795 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000544/0.9142, allocations: 320.7 kB / 1.05 GB, free: 2.254 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003458/0.9145, allocations: 0.9695 MB / 1.051 GB, free: 1.211 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.9145, allocations: 8 kB / 1.051 GB, free: 1.203 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.9146, allocations: 4 kB / 1.051 GB, free: 1.199 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002527/0.9148, allocations: 63.91 kB / 1.051 GB, free: 1.137 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.9148, allocations: 4.094 kB / 1.051 GB, free: 1.133 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.9152, allocations: 51.59 kB / 1.051 GB, free: 1.082 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.974e-05/0.9152, allocations: 20 kB / 1.051 GB, free: 1.062 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.9152, allocations: 4 kB / 1.051 GB, free: 1.059 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004498/0.9157, allocations: 247.8 kB / 1.052 GB, free: 0.8164 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.9157, allocations: 4 kB / 1.052 GB, free: 0.8125 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.589e-06/0.9157, allocations: 4 kB / 1.052 GB, free: 0.8086 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.9159, allocations: 59.91 kB / 1.052 GB, free: 0.75 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.916, allocations: 7.938 kB / 1.052 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.9163, allocations: 47.84 kB / 1.052 GB, free: 0.6953 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.9163, allocations: 12 kB / 1.052 GB, free: 0.6836 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002122/0.9165, allocations: 260.9 kB / 1.052 GB, free: 428 kB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.525e-05/0.9166, allocations: 51.34 kB / 1.052 GB, free: 376 kB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000564/0.9171, allocations: 271.6 kB / 1.052 GB, free: 96 kB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.9172, allocations: 3.953 kB / 1.052 GB, free: 92 kB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.9172, allocations: 0 / 1.052 GB, free: 92 kB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.9172, allocations: 0 / 1.052 GB, free: 92 kB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.9183, allocations: 0.7395 MB / 1.053 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.9183, allocations: 3.984 kB / 1.053 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001301/0.9184, allocations: 35.92 kB / 1.053 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.9184, allocations: 0 / 1.053 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.9185, allocations: 16.06 kB / 1.053 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.9185, allocations: 4 kB / 1.053 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.9185, allocations: 4 kB / 1.053 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005233/0.919, allocations: 409 kB / 1.054 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001609/0.9192, allocations: 156.3 kB / 1.054 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.061e-05/0.9192, allocations: 8 kB / 1.054 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.9195, allocations: 19.98 kB / 1.054 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.9195, allocations: 15.97 kB / 1.054 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.9196, allocations: 4 kB / 1.054 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004602/0.92, allocations: 414.8 kB / 1.054 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.92, allocations: 4 kB / 1.054 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0007628/0.9208, allocations: 231.6 kB / 1.054 GB, free: 13.91 MB / 0.8106 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001046/0.9219, allocations: 0.4953 MB / 1.055 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006499/0.9225, allocations: 329.7 kB / 1.055 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.9225, allocations: 4 kB / 1.055 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.9227, allocations: 84.64 kB / 1.055 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.924, allocations: 255.1 kB / 1.055 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.9253, allocations: 0.9596 MB / 1.056 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.9257, allocations: 0.8623 MB / 1.057 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000313/0.926, allocations: 104.6 kB / 1.057 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.487e-05/0.9261, allocations: 43.42 kB / 1.057 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.9261, allocations: 0 / 1.057 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of Templates: time 0.01646/0.9426, allocations: 9.567 MB / 1.067 GB, free: 1.43 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches