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.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.001269/0.001269, allocations: 92.2 kB / 20.19 MB, free: 4.355 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.001471/0.001471, allocations: 169 kB / 23.49 MB, free: 1.055 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 0.9945/0.9945, allocations: 177.1 MB / 203.8 MB, free: 5.637 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.296/2.296, allocations: 429.5 MB / 0.6736 GB, free: 4.027 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.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.008e-06/4.008e-06, allocations: 4 kB / 0.8782 GB, free: 6.656 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.502e-05/2.903e-05, allocations: 5.656 kB / 0.8782 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01442/0.01445, allocations: 16.08 MB / 0.8939 GB, free: 6.543 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.005081/0.01953, allocations: 4.455 MB / 0.8982 GB, free: 2.078 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003844/0.01991, allocations: 23.75 kB / 0.8983 GB, free: 2.055 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0009085/0.02082, allocations: 266.2 kB / 0.8985 GB, free: 1.793 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.02205, allocations: 0.6914 MB / 0.8992 GB, free: 1.098 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.02325, allocations: 0.7322 MB / 0.8999 GB, free: 372 kB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.001035/0.02429, allocations: 1.005 MB / 0.9009 GB, free: 15.36 MB / 0.8698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000399/0.02469, allocations: 269.8 kB / 0.9012 GB, free: 15.09 MB / 0.8698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007753/0.02546, allocations: 0.5956 MB / 0.9017 GB, free: 14.49 MB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003534/0.02582, allocations: 279.2 kB / 0.902 GB, free: 14.21 MB / 0.8698 GB Notification: Performance of NFPackage.collectConstants: time 5.281e-05/0.02587, allocations: 28 kB / 0.902 GB, free: 14.19 MB / 0.8698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007257/0.0266, allocations: 0.5339 MB / 0.9025 GB, free: 13.65 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 9.914e-05/0.02669, allocations: 111.5 kB / 0.9027 GB, free: 13.54 MB / 0.8698 GB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.02684, allocations: 147.5 kB / 0.9028 GB, free: 13.4 MB / 0.8698 GB Notification: Performance of NFConvertDAE.convert: time 0.0008202/0.02766, allocations: 0.6501 MB / 0.9034 GB, free: 12.75 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.02766, allocations: 4 kB / 0.9034 GB, free: 12.74 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.354e-06/0.02766, allocations: 3.938 kB / 0.9034 GB, free: 12.74 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.02767, allocations: 0 / 0.9034 GB, free: 12.74 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001104/0.02878, allocations: 0.8642 MB / 0.9043 GB, free: 11.84 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.02883, allocations: 12.03 kB / 0.9043 GB, free: 11.82 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.02895, allocations: 68.61 kB / 0.9044 GB, free: 11.76 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004644/0.02941, allocations: 377.1 kB / 0.9047 GB, free: 11.36 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.02944, allocations: 20.88 kB / 0.9047 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.051e-05/0.02948, allocations: 31.94 kB / 0.9048 GB, free: 11.31 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002703/0.02975, allocations: 156.8 kB / 0.9049 GB, free: 11.15 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.02976, allocations: 3.984 kB / 0.9049 GB, free: 11.14 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.02978, allocations: 8 kB / 0.9049 GB, free: 11.14 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.02979, allocations: 8 kB / 0.9049 GB, free: 11.13 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.02992, allocations: 66.95 kB / 0.905 GB, free: 11.07 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.03098, allocations: 0.7409 MB / 0.9057 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001645/0.03114, allocations: 83.03 kB / 0.9058 GB, free: 10.19 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.274e-05/0.03119, allocations: 31.67 kB / 0.9058 GB, free: 10.16 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.03132, allocations: 31.92 kB / 0.9059 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.03135, allocations: 45.38 kB / 0.9059 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=14): time 2.515e-06/0.03135, allocations: 3.984 kB / 0.9059 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14): time 0.0003211/0.03167, allocations: 152.3 kB / 0.9061 GB, free: 9.914 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.0317, allocations: 51.41 kB / 0.9061 GB, free: 9.852 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004632/0.03217, allocations: 438.7 kB / 0.9065 GB, free: 9.406 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.03219, allocations: 37.7 kB / 0.9066 GB, free: 9.363 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.03236, allocations: 283.4 kB / 0.9068 GB, free: 9.082 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.538e-05/0.03239, allocations: 51.53 kB / 0.9069 GB, free: 9.031 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.217e-05/0.03247, allocations: 67.34 kB / 0.9069 GB, free: 8.957 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.03262, allocations: 0.5196 MB / 0.9075 GB, free: 8.426 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.934e-05/0.03269, allocations: 39.53 kB / 0.9075 GB, free: 8.383 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002116/0.0329, allocations: 388 kB / 0.9079 GB, free: 7.906 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.03303, allocations: 94.97 kB / 0.908 GB, free: 7.801 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.03303, allocations: 0 / 0.908 GB, free: 7.801 MB / 0.8698 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002395/0.03327, allocations: 187 kB / 0.9081 GB, free: 7.613 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.03329, allocations: 7.938 kB / 0.9081 GB, free: 7.605 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.03329, allocations: 8 kB / 0.9081 GB, free: 7.598 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.03331, allocations: 0 / 0.9081 GB, free: 7.598 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.03346, allocations: 43.91 kB / 0.9082 GB, free: 7.555 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.03347, allocations: 4 kB / 0.9082 GB, free: 7.551 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.03359, allocations: 23.88 kB / 0.9082 GB, free: 7.527 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.03362, allocations: 12 kB / 0.9082 GB, free: 7.516 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001144/0.03373, allocations: 150.9 kB / 0.9084 GB, free: 7.363 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001888/0.03392, allocations: 403.5 kB / 0.9088 GB, free: 6.863 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001225/0.03404, allocations: 110.4 kB / 0.9089 GB, free: 6.734 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.164e-06/0.03404, allocations: 3.984 kB / 0.9089 GB, free: 6.73 MB / 0.8698 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0002209/0.03426, allocations: 188.8 kB / 0.909 GB, free: 6.543 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.574e-06/0.03427, allocations: 7.938 kB / 0.909 GB, free: 6.535 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-06/0.03427, allocations: 7.938 kB / 0.9091 GB, free: 6.527 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.046e-06/0.03428, allocations: 0 / 0.9091 GB, free: 6.527 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.03438, allocations: 43.97 kB / 0.9091 GB, free: 6.484 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.03439, allocations: 0 / 0.9091 GB, free: 6.484 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.0345, allocations: 24.08 kB / 0.9091 GB, free: 6.461 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.03452, allocations: 20.05 kB / 0.9091 GB, free: 6.441 MB / 0.8698 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.03463, allocations: 276 kB / 0.9094 GB, free: 6.164 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.054e-05/0.03468, allocations: 51.69 kB / 0.9095 GB, free: 6.113 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002689/0.03495, allocations: 174.9 kB / 0.9096 GB, free: 5.934 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.03496, allocations: 4 kB / 0.9096 GB, free: 5.93 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.03496, allocations: 4 kB / 0.9096 GB, free: 5.926 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.03497, allocations: 0 / 0.9096 GB, free: 5.926 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005485/0.03551, allocations: 0.5934 MB / 0.9102 GB, free: 5.273 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.03552, allocations: 0 / 0.9102 GB, free: 5.273 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.777e-05/0.03559, allocations: 31.98 kB / 0.9102 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.03559, allocations: 0 / 0.9102 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.0356, allocations: 4 kB / 0.9102 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.0356, allocations: 11.92 kB / 0.9103 GB, free: 5.227 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.0356, allocations: 4 kB / 0.9103 GB, free: 5.223 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002334/0.03584, allocations: 330.3 kB / 0.9106 GB, free: 4.863 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.0359, allocations: 55.62 kB / 0.9106 GB, free: 4.809 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.91e-05/0.03593, allocations: 4.125 kB / 0.9106 GB, free: 4.805 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.509e-05/0.03602, allocations: 15.98 kB / 0.9106 GB, free: 4.789 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.284e-05/0.03607, allocations: 15.92 kB / 0.9107 GB, free: 4.773 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.03608, allocations: 11.94 kB / 0.9107 GB, free: 4.762 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0002073/0.03629, allocations: 299 kB / 0.911 GB, free: 4.469 MB / 0.8698 GB Notification: Performance of sort global known variables: time 9.1e-08/0.03629, allocations: 0 / 0.911 GB, free: 4.469 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0004634/0.03675, allocations: 203.5 kB / 0.9112 GB, free: 4.27 MB / 0.8698 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 (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.0009812/0.03773, allocations: 454.3 kB / 0.9116 GB, free: 3.941 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002984/0.03803, allocations: 179.4 kB / 0.9118 GB, free: 3.758 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.03804, allocations: 0 / 0.9118 GB, free: 3.758 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.69e-05/0.03811, allocations: 51.59 kB / 0.9118 GB, free: 3.703 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005777/0.03869, allocations: 182.2 kB / 0.912 GB, free: 3.523 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.03996, allocations: 0.6741 MB / 0.9126 GB, free: 2.805 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.851e-05/0.04004, allocations: 121.2 kB / 0.9128 GB, free: 2.668 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0001879/0.04022, allocations: 75.14 kB / 0.9128 GB, free: 2.594 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.612e-05/0.04029, allocations: 40.48 kB / 0.9129 GB, free: 2.555 MB / 0.8698 GB Notification: Performance of SimCode: time 1.232e-06/0.04029, allocations: 0 / 0.9129 GB, free: 2.555 MB / 0.8698 GB Notification: Performance of Templates: time 0.01087/0.05116, allocations: 8.324 MB / 0.921 GB, free: 10.42 MB / 0.8855 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.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: 6.1387818900402635]