Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.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.0009939/0.0009939, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001877/0.001877, allocations: 165 kB / 23.02 MB, free: 1.551 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.051/1.051, allocations: 177.1 MB / 203.4 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.124/2.124, allocations: 429.5 MB / 0.6732 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.Electrical.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cab.[0-9,]+..Amp",fileNamePrefix="Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") translateModel(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cab.[0-9,]+..Amp",fileNamePrefix="Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 0.8781 GB, free: 6.359 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.049e-05/3.263e-05, allocations: 5.266 kB / 0.8781 GB, free: 6.355 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002146/0.002178, allocations: 1.49 MB / 0.8796 GB, free: 4.875 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002326/0.004504, allocations: 2.645 MB / 0.8822 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.947e-05/0.004534, allocations: 0 / 0.8822 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.005678, allocations: 0.5475 MB / 0.8827 GB, free: 1.684 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.645e-05/0.005724, allocations: 31.84 kB / 0.8827 GB, free: 1.652 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 3.417e-06/0.005728, allocations: 0 / 0.8827 GB, free: 1.652 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002142/0.005942, allocations: 170.8 kB / 0.8829 GB, free: 1.484 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.896e-05/0.005991, allocations: 12.59 kB / 0.8829 GB, free: 1.469 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.753e-05/0.006069, allocations: 79.78 kB / 0.883 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.006174, allocations: 63.83 kB / 0.8831 GB, free: 1.328 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.006188, allocations: 3.938 kB / 0.8831 GB, free: 1.324 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006083/0.006796, allocations: 403.5 kB / 0.8834 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.896e-05/0.006845, allocations: 39.78 kB / 0.8835 GB, free: 0.8906 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.597e-05/0.006911, allocations: 59.81 kB / 0.8835 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005267/0.007438, allocations: 438.1 kB / 0.884 GB, free: 412 kB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.007442, allocations: 4 kB / 0.884 GB, free: 408 kB / 0.8386 GB Notification: Performance of FrontEnd: time 9.52e-07/0.007443, allocations: 0 / 0.884 GB, free: 408 kB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.007449, allocations: 0 / 0.884 GB, free: 408 kB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005805/0.008029, allocations: 0.585 MB / 0.8845 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.008075, allocations: 8.031 kB / 0.8845 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.008197, allocations: 155.9 kB / 0.8847 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.00837, allocations: 290.5 kB / 0.885 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.438e-05/0.008424, allocations: 238.8 kB / 0.8852 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.685e-05/0.008481, allocations: 246.8 kB / 0.8854 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.736e-05/0.008538, allocations: 149.5 kB / 0.8856 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.008564, allocations: 119.4 kB / 0.8857 GB, free: 14.56 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.914e-05/0.008613, allocations: 238.8 kB / 0.8859 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-05/0.008665, allocations: 242.8 kB / 0.8861 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.97e-05/0.008715, allocations: 246.2 kB / 0.8864 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003086/0.009023, allocations: 0.6966 MB / 0.8871 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 8.467e-05/0.009108, allocations: 265.5 kB / 0.8873 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.425e-05/0.009142, allocations: 126.9 kB / 0.8874 GB, free: 12.71 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.009168, allocations: 123.2 kB / 0.8875 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.48e-05/0.009213, allocations: 152.6 kB / 0.8877 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=0): time 8.32e-07/0.009214, allocations: 0 / 0.8877 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of matching and sorting (n=0): time 0.0001213/0.009335, allocations: 57.5 kB / 0.8877 GB, free: 12.37 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.009385, allocations: 174.6 kB / 0.8879 GB, free: 12.18 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003085/0.009693, allocations: 482.4 kB / 0.8884 GB, free: 11.7 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.009704, allocations: 29.7 kB / 0.8884 GB, free: 11.66 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 8.309e-05/0.009787, allocations: 195.3 kB / 0.8886 GB, free: 11.46 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.655e-06/0.00979, allocations: 0 / 0.8886 GB, free: 11.46 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-05/0.009873, allocations: 123.3 kB / 0.8887 GB, free: 11.34 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.009998, allocations: 0.5274 MB / 0.8892 GB, free: 10.8 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.1e-05/0.01005, allocations: 44.64 kB / 0.8893 GB, free: 10.75 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.508e-05/0.01014, allocations: 145.7 kB / 0.8894 GB, free: 10.58 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.01031, allocations: 237.5 kB / 0.8896 GB, free: 10.32 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.01031, allocations: 0 / 0.8896 GB, free: 10.32 MB / 0.8542 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0003341/0.01065, allocations: 273.1 kB / 0.8899 GB, free: 10.05 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.01066, allocations: 4 kB / 0.8899 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.01067, allocations: 4 kB / 0.8899 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.01068, allocations: 0 / 0.8899 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.578e-06/0.01069, allocations: 4 kB / 0.8899 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.0107, allocations: 0 / 0.8899 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.084e-05/0.01079, allocations: 47.45 kB / 0.8899 GB, free: 9.988 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.01079, allocations: 4 kB / 0.8899 GB, free: 9.984 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.0001171/0.01091, allocations: 295.9 kB / 0.8902 GB, free: 9.684 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.443e-05/0.01096, allocations: 168.7 kB / 0.8904 GB, free: 9.512 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.883e-05/0.01101, allocations: 158.8 kB / 0.8905 GB, free: 9.352 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001335/0.01115, allocations: 272.1 kB / 0.8908 GB, free: 9.078 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.293e-05/0.0112, allocations: 264.1 kB / 0.8911 GB, free: 8.812 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.609e-05/0.01126, allocations: 276 kB / 0.8913 GB, free: 8.535 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.01148, allocations: 0.5858 MB / 0.8919 GB, free: 7.906 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-05/0.01151, allocations: 152.8 kB / 0.892 GB, free: 7.75 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.046e-05/0.01155, allocations: 144.9 kB / 0.8922 GB, free: 7.602 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-05/0.01161, allocations: 268.1 kB / 0.8924 GB, free: 7.332 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.243e-05/0.01168, allocations: 276 kB / 0.8927 GB, free: 7.055 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.694e-05/0.01173, allocations: 264.1 kB / 0.8929 GB, free: 6.789 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.798e-05/0.01179, allocations: 272 kB / 0.8932 GB, free: 6.516 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.01192, allocations: 467.8 kB / 0.8937 GB, free: 6.031 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.541e-05/0.01198, allocations: 168.7 kB / 0.8938 GB, free: 5.859 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.86e-05/0.01206, allocations: 276.1 kB / 0.8941 GB, free: 5.582 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.682e-05/0.01214, allocations: 149.1 kB / 0.8942 GB, free: 5.43 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.0122, allocations: 264.1 kB / 0.8945 GB, free: 5.164 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.481e-05/0.01224, allocations: 152.9 kB / 0.8946 GB, free: 5.008 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000156/0.01239, allocations: 267 kB / 0.8949 GB, free: 4.746 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01239, allocations: 0 / 0.8949 GB, free: 4.746 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002694/0.01266, allocations: 95.86 kB / 0.895 GB, free: 4.652 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0003075/0.01297, allocations: 358.1 kB / 0.8953 GB, free: 4.293 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001463/0.01312, allocations: 104.9 kB / 0.8954 GB, free: 4.188 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.01312, allocations: 0 / 0.8954 GB, free: 4.188 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.062e-06/0.01312, allocations: 0 / 0.8954 GB, free: 4.188 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.01345, allocations: 0.7136 MB / 0.8961 GB, free: 3.473 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006564/0.01411, allocations: 495.4 kB / 0.8966 GB, free: 2.957 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.374e-05/0.01416, allocations: 95.3 kB / 0.8967 GB, free: 2.844 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.175e-05/0.01418, allocations: 3.984 kB / 0.8967 GB, free: 2.84 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.009e-05/0.0142, allocations: 12.5 kB / 0.8967 GB, free: 2.828 MB / 0.8542 GB Notification: Performance of SimCode: time 5.21e-07/0.0142, allocations: 0 / 0.8967 GB, free: 2.828 MB / 0.8542 GB Notification: Performance of Templates: time 0.005285/0.01948, allocations: 3.059 MB / 0.8997 GB, free: 15.8 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.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.712019661907107]