Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 100.1 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.001536/0.001537, 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.516/1.516, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.849/2.849, allocations: 436.5 MB / 0.7104 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00045/0.0004502, allocations: 8 kB / 0.8708 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8915/0.892, allocations: 153.7 MB / 1.021 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01456/0.9066, allocations: 13.12 MB / 1.034 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006264/0.9129, allocations: 3.741 MB / 1.037 GB, free: 188 kB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005804/0.9135, allocations: 11.88 kB / 1.037 GB, free: 176 kB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001214/0.9148, allocations: 254.8 kB / 1.038 GB, free: 15.92 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00224/0.917, allocations: 0.6182 MB / 1.038 GB, free: 15.3 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002735/0.9198, allocations: 0.7782 MB / 1.039 GB, free: 14.54 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001448/0.9212, allocations: 0.6326 MB / 1.04 GB, free: 13.91 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004975/0.9217, allocations: 260.5 kB / 1.04 GB, free: 13.65 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006839/0.9224, allocations: 346.8 kB / 1.04 GB, free: 13.31 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003401/0.9228, allocations: 231 kB / 1.04 GB, free: 13.09 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.35e-05/0.9228, allocations: 16 kB / 1.04 GB, free: 13.07 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009727/0.9238, allocations: 391.4 kB / 1.041 GB, free: 12.69 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.9239, allocations: 87.64 kB / 1.041 GB, free: 12.6 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.924, allocations: 105.5 kB / 1.041 GB, free: 12.49 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006596/0.9247, allocations: 494.7 kB / 1.041 GB, free: 12.01 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.9247, allocations: 0 / 1.041 GB, free: 12.01 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.323e-06/0.9247, allocations: 4 kB / 1.041 GB, free: 12 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.9247, allocations: 0 / 1.041 GB, free: 12 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001271/0.926, allocations: 0.7279 MB / 1.042 GB, free: 11.23 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.9261, allocations: 11.98 kB / 1.042 GB, free: 11.21 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.9262, allocations: 55.44 kB / 1.042 GB, free: 11.16 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006401/0.9268, allocations: 396.9 kB / 1.043 GB, free: 10.73 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.9269, allocations: 24.38 kB / 1.043 GB, free: 10.71 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.9269, allocations: 24 kB / 1.043 GB, free: 10.68 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000433/0.9274, allocations: 215.2 kB / 1.043 GB, free: 10.46 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.9274, allocations: 4 kB / 1.043 GB, free: 10.46 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.335e-05/0.9274, allocations: 8 kB / 1.043 GB, free: 10.45 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.9274, allocations: 8 kB / 1.043 GB, free: 10.45 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003849/0.9278, allocations: 177.6 kB / 1.043 GB, free: 10.27 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.00165/0.9295, allocations: 0.9458 MB / 1.044 GB, free: 9.25 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.9298, allocations: 134.6 kB / 1.044 GB, free: 9.109 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002764/0.9301, allocations: 336.7 kB / 1.044 GB, free: 8.707 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.9301, allocations: 30.56 kB / 1.044 GB, free: 8.668 MB / 0.795 GB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.9301, allocations: 0 / 1.044 GB, free: 8.668 MB / 0.795 GB Notification: Performance of matching and sorting (n=14): time 0.000612/0.9307, allocations: 264.5 kB / 1.045 GB, free: 8.406 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.9308, allocations: 51.41 kB / 1.045 GB, free: 8.344 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004953/0.9313, allocations: 481.9 kB / 1.045 GB, free: 7.859 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.9313, allocations: 33.7 kB / 1.045 GB, free: 7.82 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001727/0.9315, allocations: 228.5 kB / 1.045 GB, free: 7.594 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/0.9315, allocations: 55.36 kB / 1.045 GB, free: 7.539 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/0.9316, allocations: 4 kB / 1.045 GB, free: 7.535 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.9317, allocations: 350.8 kB / 1.046 GB, free: 7.184 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.9319, allocations: 67.95 kB / 1.046 GB, free: 7.117 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.9321, allocations: 157.2 kB / 1.046 GB, free: 6.938 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.9323, allocations: 83.95 kB / 1.046 GB, free: 6.855 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.9323, allocations: 8 kB / 1.046 GB, free: 6.848 MB / 0.795 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004664/0.9328, allocations: 254.8 kB / 1.046 GB, free: 6.594 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.9329, allocations: 275 kB / 1.047 GB, free: 6.305 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.9329, allocations: 0 / 1.047 GB, free: 6.305 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.9329, allocations: 4 kB / 1.047 GB, free: 6.301 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.9332, allocations: 47.91 kB / 1.047 GB, free: 6.254 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.9332, allocations: 7.984 kB / 1.047 GB, free: 6.246 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003359/0.9335, allocations: 59.64 kB / 1.047 GB, free: 6.188 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.9336, allocations: 4 kB / 1.047 GB, free: 6.184 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.382e-06/0.9336, allocations: 4 kB / 1.047 GB, free: 6.18 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004023/0.934, allocations: 192.4 kB / 1.047 GB, free: 5.992 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-06/0.934, allocations: 0 / 1.047 GB, free: 5.992 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-06/0.934, allocations: 0 / 1.047 GB, free: 5.992 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.9342, allocations: 51.91 kB / 1.047 GB, free: 5.941 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.284e-06/0.9342, allocations: 4 kB / 1.047 GB, free: 5.938 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002889/0.9345, allocations: 51.8 kB / 1.047 GB, free: 5.887 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.9346, allocations: 11.98 kB / 1.047 GB, free: 5.875 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (24): * Single equations (assignments): 24 * 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.0002054/0.9348, allocations: 237 kB / 1.047 GB, free: 5.633 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.211e-05/0.9348, allocations: 43.44 kB / 1.047 GB, free: 5.59 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005254/0.9354, allocations: 258.9 kB / 1.047 GB, free: 5.332 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.9354, allocations: 4 kB / 1.047 GB, free: 5.328 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.9354, allocations: 0 / 1.047 GB, free: 5.328 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.9354, allocations: 3.953 kB / 1.048 GB, free: 5.324 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009654/0.9364, allocations: 0.7122 MB / 1.048 GB, free: 4.543 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.9364, allocations: 0 / 1.048 GB, free: 4.543 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.9365, allocations: 44.03 kB / 1.048 GB, free: 4.5 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.9365, allocations: 3.953 kB / 1.048 GB, free: 4.496 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.9366, allocations: 8 kB / 1.048 GB, free: 4.488 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.9366, allocations: 0 / 1.048 GB, free: 4.488 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.9366, allocations: 4 kB / 1.048 GB, free: 4.484 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004602/0.937, allocations: 397 kB / 1.049 GB, free: 4.043 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.9372, allocations: 148.4 kB / 1.049 GB, free: 3.879 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.167e-05/0.9373, allocations: 8 kB / 1.049 GB, free: 3.871 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002645/0.9375, allocations: 15.98 kB / 1.049 GB, free: 3.855 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.138e-05/0.9376, allocations: 23.92 kB / 1.049 GB, free: 3.832 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.9376, allocations: 4 kB / 1.049 GB, free: 3.828 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004643/0.9381, allocations: 338.9 kB / 1.049 GB, free: 3.5 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9381, allocations: 0 / 1.049 GB, free: 3.5 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0008816/0.939, allocations: 191.7 kB / 1.049 GB, free: 3.312 MB / 0.795 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 (16): * Single equations (assignments): 14 * 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.001409/0.9404, allocations: 485.5 kB / 1.05 GB, free: 2.973 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008728/0.9413, allocations: 279.7 kB / 1.05 GB, free: 2.699 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.9413, allocations: 3.938 kB / 1.05 GB, free: 2.695 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.9416, allocations: 95.83 kB / 1.05 GB, free: 2.602 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/0.9432, allocations: 214.1 kB / 1.05 GB, free: 2.391 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.9451, allocations: 0.8329 MB / 1.051 GB, free: 1.52 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007018/0.9458, allocations: 0.8389 MB / 1.052 GB, free: 0.6562 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0005202/0.9464, allocations: 95.53 kB / 1.052 GB, free: 0.5625 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.9465, allocations: 39.42 kB / 1.052 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of SimCode: time 4.21e-07/0.9465, allocations: 0 / 1.052 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of Templates: time 0.02293/0.9694, allocations: 8.061 MB / 1.06 GB, free: 8.582 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches