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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002151/0.002151, allocations: 173 kB / 23.49 MB, free: 1.059 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.027/1.027, allocations: 177.1 MB / 203.8 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.086/2.086, allocations: 429.5 MB / 0.6736 GB, free: 4.051 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 0.8782 GB, free: 6.629 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.433e-05/2.568e-05, allocations: 4.984 kB / 0.8782 GB, free: 6.625 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01367/0.01369, allocations: 18.11 MB / 0.8959 GB, free: 4.477 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.005117/0.01881, allocations: 5.092 MB / 0.9009 GB, free: 15.37 MB / 0.8698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004596/0.01927, allocations: 19.81 kB / 0.9009 GB, free: 15.35 MB / 0.8698 GB Notification: Performance of NFTyping.typeComponents: time 0.0008092/0.02008, allocations: 266.2 kB / 0.9011 GB, free: 15.09 MB / 0.8698 GB Notification: Performance of NFTyping.typeBindings: time 0.001545/0.02162, allocations: 0.6836 MB / 0.9018 GB, free: 14.4 MB / 0.8698 GB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.023, allocations: 0.7593 MB / 0.9025 GB, free: 13.64 MB / 0.8698 GB Notification: Performance of NFFlatten.flatten: time 0.000991/0.02399, allocations: 0.9621 MB / 0.9035 GB, free: 12.67 MB / 0.8698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003643/0.02436, allocations: 285.1 kB / 0.9037 GB, free: 12.39 MB / 0.8698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006729/0.02503, allocations: 0.5996 MB / 0.9043 GB, free: 11.79 MB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003159/0.02534, allocations: 267.2 kB / 0.9046 GB, free: 11.52 MB / 0.8698 GB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.02539, allocations: 28 kB / 0.9046 GB, free: 11.5 MB / 0.8698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008433/0.02623, allocations: 0.6196 MB / 0.9052 GB, free: 10.88 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.02635, allocations: 147.4 kB / 0.9054 GB, free: 10.73 MB / 0.8698 GB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.02648, allocations: 159.5 kB / 0.9055 GB, free: 10.57 MB / 0.8698 GB Notification: Performance of NFConvertDAE.convert: time 0.0009064/0.02739, allocations: 0.7474 MB / 0.9062 GB, free: 9.824 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.02739, allocations: 0 / 0.9062 GB, free: 9.824 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.373e-06/0.02739, allocations: 0 / 0.9062 GB, free: 9.824 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.0274, allocations: 0 / 0.9062 GB, free: 9.824 MB / 0.8698 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.0009205/0.02832, allocations: 0.9224 MB / 0.9071 GB, free: 8.863 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.02836, allocations: 8.031 kB / 0.9072 GB, free: 8.855 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.02853, allocations: 84.5 kB / 0.9072 GB, free: 8.773 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004463/0.02898, allocations: 397.1 kB / 0.9076 GB, free: 8.363 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.029, allocations: 24.81 kB / 0.9076 GB, free: 8.34 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.214e-05/0.02903, allocations: 28.38 kB / 0.9077 GB, free: 8.312 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/0.02934, allocations: 252.1 kB / 0.9079 GB, free: 8.039 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.02935, allocations: 0 / 0.9079 GB, free: 8.039 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.02937, allocations: 11.98 kB / 0.9079 GB, free: 8.027 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.02938, allocations: 8 kB / 0.9079 GB, free: 8.02 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001465/0.02953, allocations: 90.88 kB / 0.908 GB, free: 7.93 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.0307, allocations: 1.372 MB / 0.9093 GB, free: 6.496 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000175/0.03087, allocations: 107.2 kB / 0.9094 GB, free: 6.379 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.913e-05/0.03093, allocations: 39.67 kB / 0.9095 GB, free: 6.336 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007063/0.03164, allocations: 0.5973 MB / 0.9101 GB, free: 5.719 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.03166, allocations: 41.39 kB / 0.9101 GB, free: 5.668 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.03166, allocations: 0 / 0.9101 GB, free: 5.668 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15): time 0.0002828/0.03194, allocations: 149.3 kB / 0.9103 GB, free: 5.516 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.03197, allocations: 63.34 kB / 0.9103 GB, free: 5.441 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003841/0.03236, allocations: 0.522 MB / 0.9108 GB, free: 4.902 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.03237, allocations: 29.64 kB / 0.9109 GB, free: 4.867 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.03254, allocations: 327.1 kB / 0.9112 GB, free: 4.539 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.788e-05/0.03257, allocations: 47.59 kB / 0.9112 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.455e-05/0.03264, allocations: 79.58 kB / 0.9113 GB, free: 4.402 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.03278, allocations: 0.5313 MB / 0.9118 GB, free: 3.859 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.545e-05/0.03285, allocations: 44.78 kB / 0.9118 GB, free: 3.812 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.03305, allocations: 422.9 kB / 0.9122 GB, free: 3.281 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001697/0.03322, allocations: 190.9 kB / 0.9124 GB, free: 3.051 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.03322, allocations: 0 / 0.9124 GB, free: 3.051 MB / 0.8698 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002757/0.0335, allocations: 251.1 kB / 0.9127 GB, free: 2.801 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.03351, allocations: 4 kB / 0.9127 GB, free: 2.797 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.03352, allocations: 7.984 kB / 0.9127 GB, free: 2.789 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.03353, allocations: 4 kB / 0.9127 GB, free: 2.785 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.03368, allocations: 55.92 kB / 0.9127 GB, free: 2.73 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.03369, allocations: 11.92 kB / 0.9128 GB, free: 2.719 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.03382, allocations: 35.78 kB / 0.9128 GB, free: 2.684 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.03385, allocations: 15.98 kB / 0.9128 GB, free: 2.668 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001125/0.03396, allocations: 163.4 kB / 0.913 GB, free: 2.504 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001956/0.03415, allocations: 431.5 kB / 0.9134 GB, free: 1.961 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001521/0.03431, allocations: 184.6 kB / 0.9135 GB, free: 1.734 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.232e-06/0.03431, allocations: 0 / 0.9135 GB, free: 1.734 MB / 0.8698 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.000252/0.03456, allocations: 243 kB / 0.9138 GB, free: 1.492 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.916e-06/0.03457, allocations: 11.98 kB / 0.9138 GB, free: 1.48 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.295e-06/0.03457, allocations: 0 / 0.9138 GB, free: 1.48 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.937e-06/0.03457, allocations: 4 kB / 0.9138 GB, free: 1.477 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.03469, allocations: 55.92 kB / 0.9138 GB, free: 1.422 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.0347, allocations: 11.92 kB / 0.9139 GB, free: 1.41 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.03482, allocations: 27.83 kB / 0.9139 GB, free: 1.383 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.03484, allocations: 19.98 kB / 0.9139 GB, free: 1.363 MB / 0.8698 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.703e-05/0.03494, allocations: 292.1 kB / 0.9142 GB, free: 1.07 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/0.03499, allocations: 55.67 kB / 0.9142 GB, free: 1.016 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002548/0.03524, allocations: 185.3 kB / 0.9144 GB, free: 0.8242 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.03525, allocations: 0 / 0.9144 GB, free: 0.8242 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.03525, allocations: 3.938 kB / 0.9144 GB, free: 0.8203 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.03526, allocations: 4 kB / 0.9144 GB, free: 0.8164 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005418/0.0358, allocations: 0.6286 MB / 0.915 GB, free: 132 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.0358, allocations: 4.125 kB / 0.915 GB, free: 128 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.577e-05/0.03587, allocations: 27.98 kB / 0.9151 GB, free: 100 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.03587, allocations: 7.938 kB / 0.9151 GB, free: 92 kB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.03588, allocations: 4 kB / 0.9151 GB, free: 88 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.03589, allocations: 4 kB / 0.9151 GB, free: 84 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.03589, allocations: 0 / 0.9151 GB, free: 84 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002288/0.03612, allocations: 347.8 kB / 0.9154 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.458e-05/0.03619, allocations: 71.55 kB / 0.9155 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.03622, allocations: 4 kB / 0.9155 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.908e-05/0.0363, allocations: 4 kB / 0.9155 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.03634, allocations: 24.16 kB / 0.9155 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.839e-06/0.03635, allocations: 4 kB / 0.9155 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002327/0.03659, allocations: 346.8 kB / 0.9158 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6e-08/0.03659, allocations: 0 / 0.9158 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004941/0.03708, allocations: 235.5 kB / 0.9161 GB, free: 15.04 MB / 0.8855 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009129/0.03799, allocations: 481.8 kB / 0.9165 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003001/0.03829, allocations: 226 kB / 0.9167 GB, free: 14.45 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.0383, allocations: 0 / 0.9167 GB, free: 14.45 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 7.231e-05/0.03837, allocations: 55.59 kB / 0.9168 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006396/0.03901, allocations: 226.2 kB / 0.917 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.04021, allocations: 0.7414 MB / 0.9177 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.651e-05/0.04029, allocations: 125.5 kB / 0.9179 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001829/0.04047, allocations: 84.06 kB / 0.9179 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.34e-05/0.04054, allocations: 44.48 kB / 0.918 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of SimCode: time 7.92e-07/0.04054, allocations: 4 kB / 0.918 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of Templates: time 0.01216/0.0527, allocations: 10.15 MB / 0.9279 GB, free: 3.18 MB / 0.8855 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.6322437189519405]