Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.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.001229/0.001229, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001494/0.001494, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9453/0.9453, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.036/2.036, allocations: 429.5 MB / 0.6743 GB, free: 3.871 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.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y1|y2",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing") translateModel(Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y1|y2",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 0.8794 GB, free: 6.012 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.642e-05/2.818e-05, allocations: 5.125 kB / 0.8794 GB, free: 6.008 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing): time 0.009575/0.009603, allocations: 7.185 MB / 0.8864 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.004439/0.01404, allocations: 2.519 MB / 0.8889 GB, free: 12.3 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004863/0.01453, allocations: 19.81 kB / 0.8889 GB, free: 12.28 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0004554/0.01498, allocations: 127 kB / 0.889 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.01605, allocations: 397.5 kB / 0.8894 GB, free: 11.76 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.001498/0.01754, allocations: 0.5726 MB / 0.89 GB, free: 11.19 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.001556/0.0191, allocations: 0.923 MB / 0.8909 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004706/0.01957, allocations: 253.2 kB / 0.8911 GB, free: 10.01 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008215/0.02039, allocations: 474.7 kB / 0.8915 GB, free: 9.543 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004831/0.02087, allocations: 255.2 kB / 0.8918 GB, free: 9.293 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 8.397e-05/0.02096, allocations: 20 kB / 0.8918 GB, free: 9.273 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003286/0.02129, allocations: 111.7 kB / 0.8919 GB, free: 9.164 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.0214, allocations: 91.53 kB / 0.892 GB, free: 9.074 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.02157, allocations: 127.6 kB / 0.8921 GB, free: 8.949 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0005632/0.02213, allocations: 346.7 kB / 0.8925 GB, free: 8.609 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.02214, allocations: 0 / 0.8925 GB, free: 8.609 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.473e-06/0.02214, allocations: 0 / 0.8925 GB, free: 8.609 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.077e-05/0.02215, allocations: 0 / 0.8925 GB, free: 8.609 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001086/0.02323, allocations: 0.7519 MB / 0.8932 GB, free: 7.82 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.02327, allocations: 8.031 kB / 0.8932 GB, free: 7.812 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.0234, allocations: 72.61 kB / 0.8933 GB, free: 7.742 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005643/0.02397, allocations: 346 kB / 0.8936 GB, free: 7.379 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.634e-05/0.02399, allocations: 20.88 kB / 0.8936 GB, free: 7.359 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.02403, allocations: 24.38 kB / 0.8936 GB, free: 7.336 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002323/0.02426, allocations: 120.2 kB / 0.8938 GB, free: 7.215 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.02428, allocations: 4 kB / 0.8938 GB, free: 7.211 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.0243, allocations: 8 kB / 0.8938 GB, free: 7.203 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.02431, allocations: 7.984 kB / 0.8938 GB, free: 7.195 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.02443, allocations: 55.39 kB / 0.8938 GB, free: 7.141 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.02563, allocations: 0.6122 MB / 0.8944 GB, free: 6.504 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.02599, allocations: 95.11 kB / 0.8945 GB, free: 6.398 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.765e-05/0.02605, allocations: 27.67 kB / 0.8945 GB, free: 6.367 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000104/0.02616, allocations: 12 kB / 0.8946 GB, free: 6.355 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.02618, allocations: 37.39 kB / 0.8946 GB, free: 6.309 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=12): time 2.394e-06/0.02619, allocations: 0 / 0.8946 GB, free: 6.309 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12): time 0.0002709/0.02646, allocations: 125.2 kB / 0.8947 GB, free: 6.18 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.02649, allocations: 55.41 kB / 0.8948 GB, free: 6.113 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000386/0.02688, allocations: 406.4 kB / 0.8951 GB, free: 5.695 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.0269, allocations: 33.7 kB / 0.8952 GB, free: 5.656 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.02708, allocations: 263.3 kB / 0.8954 GB, free: 5.395 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.33e-05/0.02711, allocations: 43.64 kB / 0.8955 GB, free: 5.352 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.487e-05/0.02721, allocations: 63.28 kB / 0.8955 GB, free: 5.281 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.02737, allocations: 0.5195 MB / 0.896 GB, free: 4.75 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.344e-05/0.02743, allocations: 19.98 kB / 0.8961 GB, free: 4.73 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.0276, allocations: 248.8 kB / 0.8963 GB, free: 4.426 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.02773, allocations: 102.6 kB / 0.8964 GB, free: 4.309 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.02773, allocations: 0 / 0.8964 GB, free: 4.309 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002802/0.02801, allocations: 153.3 kB / 0.8965 GB, free: 4.152 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.02803, allocations: 12 kB / 0.8966 GB, free: 4.141 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.02804, allocations: 3.938 kB / 0.8966 GB, free: 4.137 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.02805, allocations: 4 kB / 0.8966 GB, free: 4.133 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.02823, allocations: 43.91 kB / 0.8966 GB, free: 4.09 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.02824, allocations: 4 kB / 0.8966 GB, free: 4.086 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.02843, allocations: 23.84 kB / 0.8966 GB, free: 4.062 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.02846, allocations: 11.98 kB / 0.8966 GB, free: 4.051 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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.0001264/0.02858, allocations: 164.5 kB / 0.8968 GB, free: 3.879 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.473e-05/0.02865, allocations: 39.77 kB / 0.8968 GB, free: 3.84 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002719/0.02892, allocations: 144.2 kB / 0.897 GB, free: 3.691 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.02893, allocations: 3.984 kB / 0.897 GB, free: 3.688 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.02893, allocations: 0 / 0.897 GB, free: 3.688 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.02894, allocations: 0 / 0.897 GB, free: 3.688 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009263/0.02986, allocations: 496.3 kB / 0.8975 GB, free: 3.152 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.02987, allocations: 7.938 kB / 0.8975 GB, free: 3.145 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.02998, allocations: 27.92 kB / 0.8975 GB, free: 3.117 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.02998, allocations: 4.125 kB / 0.8975 GB, free: 3.113 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.03, allocations: 8 kB / 0.8975 GB, free: 3.105 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.03, allocations: 0 / 0.8975 GB, free: 3.105 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-06/0.03, allocations: 4 kB / 0.8975 GB, free: 3.102 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.03028, allocations: 310 kB / 0.8978 GB, free: 2.766 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.527e-05/0.03037, allocations: 55.61 kB / 0.8978 GB, free: 2.711 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.901e-05/0.03041, allocations: 0 / 0.8978 GB, free: 2.711 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.03058, allocations: 8 kB / 0.8979 GB, free: 2.703 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.771e-05/0.03061, allocations: 15.97 kB / 0.8979 GB, free: 2.688 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.03062, allocations: 8 kB / 0.8979 GB, free: 2.68 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000218/0.03084, allocations: 259 kB / 0.8981 GB, free: 2.43 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.61e-07/0.03084, allocations: 0 / 0.8981 GB, free: 2.43 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004531/0.0313, allocations: 91.83 kB / 0.8982 GB, free: 2.34 MB / 0.8542 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 (14): * Single equations (assignments): 12 * 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.0002786/0.03157, allocations: 162.6 kB / 0.8984 GB, free: 2.176 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000211/0.03179, allocations: 87.67 kB / 0.8985 GB, free: 2.086 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.03179, allocations: 3.938 kB / 0.8985 GB, free: 2.082 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 8.204e-05/0.03187, allocations: 47.59 kB / 0.8985 GB, free: 2.031 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007678/0.03264, allocations: 152.1 kB / 0.8986 GB, free: 1.883 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.03422, allocations: 0.6469 MB / 0.8993 GB, free: 1.188 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.977e-05/0.03431, allocations: 104.6 kB / 0.8994 GB, free: 1.062 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001952/0.03451, allocations: 51.05 kB / 0.8994 GB, free: 1.012 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003427/0.03485, allocations: 182.1 kB / 0.8996 GB, free: 0.832 MB / 0.8542 GB Notification: Performance of SimCode: time 9.72e-07/0.03485, allocations: 4 kB / 0.8996 GB, free: 0.8281 MB / 0.8542 GB Notification: Performance of Templates: time 0.0128/0.04766, allocations: 6.434 MB / 0.9059 GB, free: 10.6 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.sim & ./Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing.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.2303205551579595]